Skip to content

Commit

Permalink
fix: unreasonable error or Repository.Log()
Browse files Browse the repository at this point in the history
  • Loading branch information
wintbiit committed Apr 13, 2024
1 parent 16ee269 commit 5ed7d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions semantic/semantic_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 5ed7d36

Please sign in to comment.