Skip to content

Commit 2406e5c

Browse files
committed
Add --no-show-signature to "git log --pretty=format:%ct -n1" call
so the timestamp can be read correctly even if the user has set log.showSignature to true in git config. Closes: #1035321
1 parent 994f003 commit 2406e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func pkgVersionFromGit(gitdir string, u *upstream, forcePrerelease bool) (string
100100
}
101101

102102
// Find committer date, UNIX timestamp
103-
cmd = exec.Command("git", "log", "--pretty=format:%ct", "-n1")
103+
cmd = exec.Command("git", "log", "--pretty=format:%ct", "-n1", "--no-show-signature")
104104
cmd.Dir = gitdir
105105
lastCommitUnixBytes, err := cmd.Output()
106106
if err != nil {

0 commit comments

Comments
 (0)