diff --git a/src/cmd/go/internal/modfetch/codehost/git.go b/src/cmd/go/internal/modfetch/codehost/git.go index afa046752f3..ef23e53775b 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) }