mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-19 11:44:20 -04:00
go pseudo version hack script: use correct commit hash length
This commit is contained in:
parent
a705fabf43
commit
f9dc21685f
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ func (g *Git) Revision() (string, time.Time, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", time.Time{}, err
|
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.
|
// FirstParentWithVersionTag returns the first parent of the HEAD commit (or HEAD itself) that has a version tag.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue