Skip to content

Commit

Permalink
Merge pull request #1 from wotolom/git-commit-count-trimspace
Browse files Browse the repository at this point in the history
fix: trim spaces on git rev-list --count
  • Loading branch information
wotolom authored Jul 17, 2024
2 parents ca211b6 + f307781 commit 2910fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/git_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (g *GitCLIBackend) GetCommitCount(ref Ref) (int, error) {
if err != nil {
return 0, err
}
return strconv.Atoi(out)
return strconv.Atoi(strings.TrimSpace(out))
}

func (g *GitCLIBackend) GetTag(ref Ref) (string, error) {
Expand Down

0 comments on commit 2910fd1

Please sign in to comment.