summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/internal/modfetch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:27:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:27:10 +0000
commit32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f (patch)
tree6e5b1b98afaeadd19ba7fd4b710f71cbf187942e /src/cmd/go/internal/modfetch
parentAdding upstream version 1.22.1. (diff)
downloadgolang-1.22-32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f.tar.xz
golang-1.22-32c8b04ddb6829a3f5f7267a666b4caa3cf38a1f.zip
Adding upstream version 1.22.2.upstream/1.22.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cmd/go/internal/modfetch')
-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 7d9e5d8..bab4c5e 100644
--- a/src/cmd/go/internal/modfetch/codehost/git.go
+++ b/src/cmd/go/internal/modfetch/codehost/git.go
@@ -554,7 +554,7 @@ func (r *gitRepo) stat(ctx context.Context, rev string) (info *RevInfo, err erro
// an apparent Git bug introduced in Git 2.21 (commit 61c771),
// which causes the handler for protocol version 1 to sometimes miss
// tags that point to the requested commit (see https://go.dev/issue/56881).
- _, err = Run(ctx, r.dir, "git", "fetch", "-f", "-c", "protocol.version=2", "--depth=1", r.remote, refspec)
+ _, err = Run(ctx, r.dir, "git", "-c", "protocol.version=2", "fetch", "-f", "--depth=1", r.remote, refspec)
release()
if err == nil {