File tree 1 file changed +0
-17
lines changed
src/cmd/go/internal/modload 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -452,23 +452,6 @@ func Init() {
452
452
os .Setenv ("GIT_TERMINAL_PROMPT" , "0" )
453
453
}
454
454
455
- // Disable any ssh connection pooling by Git.
456
- // If a Git subprocess forks a child into the background to cache a new connection,
457
- // that child keeps stdout/stderr open. After the Git subprocess exits,
458
- // os/exec expects to be able to read from the stdout/stderr pipe
459
- // until EOF to get all the data that the Git subprocess wrote before exiting.
460
- // The EOF doesn't come until the child exits too, because the child
461
- // is holding the write end of the pipe.
462
- // This is unfortunate, but it has come up at least twice
463
- // (see golang.org/issue/13453 and golang.org/issue/16104)
464
- // and confuses users when it does.
465
- // If the user has explicitly set GIT_SSH or GIT_SSH_COMMAND,
466
- // assume they know what they are doing and don't step on it.
467
- // But default to turning off ControlMaster.
468
- if os .Getenv ("GIT_SSH" ) == "" && os .Getenv ("GIT_SSH_COMMAND" ) == "" {
469
- os .Setenv ("GIT_SSH_COMMAND" , "ssh -o ControlMaster=no -o BatchMode=yes" )
470
- }
471
-
472
455
if os .Getenv ("GCM_INTERACTIVE" ) == "" {
473
456
os .Setenv ("GCM_INTERACTIVE" , "never" )
474
457
}
You can’t perform that action at this time.
0 commit comments