pseudo-version: Use committer time (#707)

This commit is contained in:
Malte Poll 2022-12-02 16:34:11 +01:00 committed by GitHub
parent 0c71cc77f6
commit a50e82fd1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,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()[:12], commit.Author.When, nil return commitRef.Hash().String()[:12], commit.Committer.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.