aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/get_update_unknown_protocol.txt
blob: b00adea70b22a4d7ed1a8f9d3741487bc5227414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[!net] skip
[!exec:git] skip
env GO111MODULE=off

# Clone the repo via HTTPS manually.
exec git clone -q https://github.com/golang/example github.com/golang/example

# Configure the repo to use a protocol unknown to cmd/go
# that still actually works.
cd github.com/golang/example
exec git remote set-url origin xyz://github.com/golang/example
exec git config --local url.https://github.com/.insteadOf xyz://github.com/

go get -d -u -f github.com/golang/example/hello