Skip to content

Commit

Permalink
fix: use 7 char long commit hash
Browse files Browse the repository at this point in the history
As a result of a typo, 8 character long commit hashes were parsed
instead of 7, which is the standard short commit hash.

Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
  • Loading branch information
gabor-boros committed Nov 4, 2021
1 parent 18a013c commit d137a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Expand Up @@ -347,7 +347,7 @@ func runRootCmd(_ *cobra.Command, _ []string) {
var err error

if viper.GetBool("version") {
fmt.Printf("%s version %s, commit %s (%s)\n", program, version, commit[:8], date)
fmt.Printf("%s version %s, commit %s (%s)\n", program, version, commit[:7], date)
os.Exit(0)
}

Expand Down

0 comments on commit d137a63

Please sign in to comment.