Skip to content

Commit

Permalink
git: fix error message in NumberCommits
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Tenart <atenart@kernel.org>
  • Loading branch information
atenart committed Jan 22, 2021
1 parent cb7a8c2 commit ee99ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func NumberCommits(sha1, sha2 string) int {
cmd.Stderr = nil
CmdOut, err := cmd.Output()
if err != nil {
fmt.Printf("There are no commits between %s and %s", sha2, sha2)
fmt.Printf("There are no commits between %s and %s\n", sha1, sha2)
log.Fatal(err)
}
numLines := strings.Count(string(CmdOut), "\n")
Expand Down

0 comments on commit ee99ea6

Please sign in to comment.