Skip to content

Commit 90066bf

Browse files
oioojBryan C. Mills
authored and
Bryan C. Mills
committed
cmd/go/internal/modfetch: run git log with "-c log.showsignature=false"
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 4f9ae77 commit 90066bf

File tree

1 file changed

+1
-1
lines changed
  • src/cmd/go/internal/modfetch/codehost

1 file changed

+1
-1
lines changed

src/cmd/go/internal/modfetch/codehost/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ func (r *gitRepo) stat(rev string) (*RevInfo, error) {
378378
// statLocal returns a RevInfo describing rev in the local git repository.
379379
// It uses version as info.Version.
380380
func (r *gitRepo) statLocal(version, rev string) (*RevInfo, error) {
381-
out, err := Run(r.dir, "git", "log", "-n1", "--format=format:%H %ct %D", "--no-show-signature", rev)
381+
out, err := Run(r.dir, "git", "-c", "log.showsignature=false", "log", "-n1", "--format=format:%H %ct %D", rev)
382382
if err != nil {
383383
return nil, fmt.Errorf("unknown revision %s", rev)
384384
}

0 commit comments

Comments
 (0)