go pseudo version hack script: use correct commit hash length

This commit is contained in:
Malte Poll 2022-08-02 10:47:04 +02:00 committed by Malte Poll
parent a705fabf43
commit f9dc21685f

View File

@ -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.