Skip to content

Commit

Permalink
feat: Use short commit hash in version
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Oct 6, 2023
1 parent c082539 commit 3581bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

func buildVersion(version, commit string) string {
if commit != "" {
version += " (" + commit + ")"
version += " (" + commit[:8] + ")"
}
return version
}

0 comments on commit 3581bb1

Please sign in to comment.