From 5ed7d366869a5e1646cc8cf1320c7c9f0b6d2985 Mon Sep 17 00:00:00 2001 From: WintBit Date: Sat, 13 Apr 2024 22:45:46 +0800 Subject: [PATCH] fix: unreasonable error or Repository.Log() --- semantic/semantic_release.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/semantic/semantic_release.go b/semantic/semantic_release.go index 34f6e05..83eff1a 100644 --- a/semantic/semantic_release.go +++ b/semantic/semantic_release.go @@ -56,9 +56,9 @@ func Run(opt types.SemanticOptions) { } // get commits since last version - commits, err := r.Log(&git.LogOptions{From: currentCommit.Hash()}) + commits, err := r.CommitObjects() if err != nil { - log.Fatal().Err(err).Msg("Failed to get commits") + log.Fatal().Err(err).Msg("Failed to get commit objects") } sinceCommits, err := utils.CommitsSince(commits, utils.HashShort(currentCommit.Hash()))