From f9dc21685f457164f7a1fc795b094de4935d1c3a Mon Sep 17 00:00:00 2001 From: Malte Poll Date: Tue, 2 Aug 2022 10:47:04 +0200 Subject: [PATCH] go pseudo version hack script: use correct commit hash length --- hack/pseudo-version/internal/git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/pseudo-version/internal/git/git.go b/hack/pseudo-version/internal/git/git.go index 926eaac89..918c89525 100644 --- a/hack/pseudo-version/internal/git/git.go +++ b/hack/pseudo-version/internal/git/git.go @@ -35,7 +35,7 @@ func (g *Git) Revision() (string, time.Time, error) { if err != nil { return "", time.Time{}, err } - return commitRef.Hash().String()[:8], commit.Author.When, nil + return commitRef.Hash().String()[:12], commit.Author.When, nil } // FirstParentWithVersionTag returns the first parent of the HEAD commit (or HEAD itself) that has a version tag.