mirror of https://github.com/golang/go.git
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:
parent
0c428a5617
commit
bdd5d6e257
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue