• Russ Cox's avatar
    cmd/go: disable password prompt when running git · 8df0bcc1
    Russ Cox authored
    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/12175Reviewed-by: 's avatarRob Pike <r@golang.org>
    8df0bcc1
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...