aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-07-14 01:22:53 -0400
committerRuss Cox <rsc@golang.org>2015-07-15 04:36:49 +0000
commit8df0bcc1fb9a4da7f2fafa959fe9c101f99866ef (patch)
treedaa79ed6ab82ae5d41a0573e6fb8340b521ad7e4 /src/os/exec
parent3c9f60c99a1212e6dd1233fea930d45ce9c32198 (diff)
downloadgo-8df0bcc1fb9a4da7f2fafa959fe9c101f99866ef.tar.xz
cmd/go: disable password prompt when running git
This fix only works on Git 2.3.0 and later. There appears to be no portable way to fix the earlier versions. We already run git with stdin closed, but on Unix git calls getpass, which opens /dev/tty itself. We could do package syscall-specific things to get /dev/tty invalidated during the exec, but I'd really rather not. And on Windows, Git opens "CONIN$" and "CONOUT$" itself, and I have no idea how to invalidate those. Fix the problem for newish Git versions and wait for people to update. Best we can do. Fixes #9341. Change-Id: I576579b106764029853e0f74d411e19108deecf5 Reviewed-on: https://go-review.googlesource.com/12175 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions