mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-23 13:51:06 -05:00
go pseudo version hack script: use correct commit hash length
This commit is contained in:
parent
a705fabf43
commit
f9dc21685f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user