]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't override GIT_TERMINAL_PROMPT
authorBurcu Dogan <jbd@google.com>
Mon, 19 Oct 2015 22:27:19 +0000 (15:27 -0700)
committerAndrew Gerrand <adg@golang.org>
Mon, 19 Oct 2015 23:05:52 +0000 (23:05 +0000)
commit4dc49d23a7b70038890df6c3862f33822da29b48
treea8645b1e4093acb8d3bcf8117fb2c4fa481f7ba4
parent88fa2e0be638a48cd91ea73cddd59b1728098f5d
cmd/go: don't override GIT_TERMINAL_PROMPT

This CL keeps disallowing `go get` from falling to the prompt unless
user has set GIT_TERMINAL_PROMPT env variable. If GIT_TERMINAL_PROMPT
is set, go-get will not override its value and will prompt for
username/password in the case of GIT_TERMINAL_PROMPT=1.

Fixes #12706.

Change-Id: Ibd6b1100af6b04fb8114279cdcf608943e7765be
Reviewed-on: https://go-review.googlesource.com/16091
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/go/get.go