build: Consistently use 8 hash digits in git describe

This might otherwise differ between builds depending on branches present
in the repository and the Git version in use (?).
This commit is contained in:
Jakob Borg 2020-06-26 09:02:35 +02:00
parent 4f06708330
commit e0c8865a45
1 changed files with 1 additions and 1 deletions

View File

@ -861,7 +861,7 @@ func getReleaseVersion() (string, error) {
func getGitVersion() (string, error) {
// The current version as Git sees it
bs, err := runError("git", "describe", "--always", "--dirty")
bs, err := runError("git", "describe", "--always", "--dirty", "--abbrev=8")
if err != nil {
return "", err
}