]> Cypherpunks repositories - gostls13.git/commit
cmd/go: clear GIT_ALLOW_PROTOCOL during tests
authorRuss Cox <rsc@golang.org>
Thu, 3 Nov 2016 03:12:10 +0000 (23:12 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 3 Nov 2016 16:08:35 +0000 (16:08 +0000)
commit95e809f0e525fca000ec634e1e8cc10d6cebdf30
tree0f7b4e45c922991527bd89c68a44603d538052e3
parenta35decf5a7a722acb32642b6a096271d10545376
cmd/go: clear GIT_ALLOW_PROTOCOL during tests

Clear it before any tests begin.
Clear it again after TestIsSecureGitAllowProtocol sets it.

Fixes #17700.

Change-Id: I6ea50d37f8222d8c7c9fee0b1eac3bbdfb5d133e
Reviewed-on: https://go-review.googlesource.com/32640
Reviewed-by: Quentin Smith <quentin@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/go/go_test.go
src/cmd/go/vcs_test.go