aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modfetch/codehost/git.go
diff options
context:
space:
mode:
authorFrank Schroeder <frank.schroeder@gmail.com>2018-07-14 21:58:07 +0000
committerRuss Cox <rsc@golang.org>2018-07-17 18:04:14 +0000
commitb9a764ffdfa0fd41be6b0cfcd889f2349b14e2b5 (patch)
treec35b800517548faa28fb0bed78198561eb7df251 /src/cmd/go/internal/modfetch/codehost/git.go
parent5419e7a09d3ad91aa462621fc86752b092bf2718 (diff)
downloadgo-b9a764ffdfa0fd41be6b0cfcd889f2349b14e2b5.tar.gz
go-b9a764ffdfa0fd41be6b0cfcd889f2349b14e2b5.zip
cmd/go: run git log with --no-show-signature
Git timestamp parsing is broken when fetching modules if the local git configuration has 'log.showsignature=true'. Fixes #26388 Change-Id: I47f92381784072335a2a465de56092106c616108 GitHub-Last-Rev: 96f988c0a2dd39a5747ec4a7bad05e7e8ee0d384 GitHub-Pull-Request: golang/go#26389 Reviewed-on: https://go-review.googlesource.com/123958 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/internal/modfetch/codehost/git.go')
-rw-r--r--src/cmd/go/internal/modfetch/codehost/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modfetch/codehost/git.go b/src/cmd/go/internal/modfetch/codehost/git.go
index afa046752f..ef23e53775 100644
--- a/src/cmd/go/internal/modfetch/codehost/git.go
+++ b/src/cmd/go/internal/modfetch/codehost/git.go
@@ -362,7 +362,7 @@ func (r *gitRepo) stat(rev string) (*RevInfo, error) {
// statLocal returns a RevInfo describing rev in the local git repository.
// It uses version as info.Version.
func (r *gitRepo) statLocal(version, rev string) (*RevInfo, error) {
- out, err := Run(r.dir, "git", "log", "-n1", "--format=format:%H %ct %D", rev)
+ out, err := Run(r.dir, "git", "log", "-n1", "--format=format:%H %ct %D", "--no-show-signature", rev)
if err != nil {
return nil, fmt.Errorf("unknown revision %s", rev)
}