cmd/go: tiny cleanup

Change-Id: I65084e518c735f1e50d191a612cd32533b241685
Reviewed-on: https://go-review.googlesource.com/17742
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Russ Cox 2015-12-11 11:35:23 -05:00
parent 0c428a5617
commit bdd5d6e257
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func runGet(cmd *Command, args []string) {
// If user has explicitly set GIT_TERMINAL_PROMPT=1, keep
// prompting.
// See golang.org/issue/9341 and golang.org/issue/12706.
if v := os.Getenv("GIT_TERMINAL_PROMPT"); v == "" {
if os.Getenv("GIT_TERMINAL_PROMPT") == "" {
os.Setenv("GIT_TERMINAL_PROMPT", "0")
}