Skip to content

Commit

Permalink
cmd/go/internal/modfetch: run git log with "-c log.showsignature=false"
Browse files Browse the repository at this point in the history
The old version git not support "--no-show-signature", git add this from
v2.10.0.

Fixes #26501.

Change-Id: Ia6b54488651e8687b08a4d40e092822bf960c4fe
Reviewed-on: https://go-review.googlesource.com/125315
Run-TryBot: Baokun Lee <nototon@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
  • Loading branch information
oiooj authored and Bryan C. Mills committed Jul 24, 2018
1 parent 4f9ae77 commit 90066bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/internal/modfetch/codehost/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,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", "--no-show-signature", rev)
out, err := Run(r.dir, "git", "-c", "log.showsignature=false", "log", "-n1", "--format=format:%H %ct %D", rev)
if err != nil {
return nil, fmt.Errorf("unknown revision %s", rev)
}
Expand Down

0 comments on commit 90066bf

Please sign in to comment.