]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch/codehost: disable fetch of server-resolved commit hash
authorRuss Cox <rsc@golang.org>
Tue, 30 Apr 2019 17:07:05 +0000 (13:07 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 30 Apr 2019 20:22:30 +0000 (20:22 +0000)
commit70b890ce3b72fdab528ee1f93b1950173e9a0992
treec6009f64ea1737a1e67968e5a8e7b5d6ab1ac925
parent8bde43e0694ed91565c95b286e3d31a2f43d8d80
cmd/go/internal/modfetch/codehost: disable fetch of server-resolved commit hash

We cannot rely on the server to filter out the refs we don't want
(we only want refs/heads/* and refs/tags/*), so do not give it
the full hash.

Fixes #31191.

Change-Id: If1208c35954228aa6e8734f8d5f1725d0ec79c87
Reviewed-on: https://go-review.googlesource.com/c/go/+/174517
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/testdata/script/mod_get_hash.txt [new file with mode: 0644]