From d137a63d5fd7a399814922b5ea40769c09df188e Mon Sep 17 00:00:00 2001 From: Gabor Boros Date: Thu, 4 Nov 2021 08:32:52 +0100 Subject: [PATCH] fix: use 7 char long commit hash 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 --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 00516d4..c9e135c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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) }