Set GIT_ASKPASS=true when running Git
commit5b1ed781489047d9bf53843ff6575e606dfa0f84
authorKyle J. McKay <mackyle@gmail.com>
Thu, 22 Jan 2015 13:30:02 +0000 (22 05:30 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 22 Jan 2015 13:30:02 +0000 (22 05:30 -0800)
tree66a7eea34e5198a7b8218490b3f0a9b7ba3414f7
parente6ef48367a6ffa69bedd82268d2bb815bfcc198e
Set GIT_ASKPASS=true when running Git

Previously we set GIT_TERMINAL_PROMPT=0 to cause any fetches that
result in remote 401 errors to fail immediately rather than requesting
a password.  That only works with newer Gits.  To effect the same
result with older Gits we set GIT_ASKPASS to true assuming that
executable is somewhere in the PATH and ignores any arguments and
always returns success.  This causes an empty password to be sent
rather than immediately aborting but it's probably almost as
effective in most cases.
Girocco/Config.pm
bin/git-shell-verify
shlib.sh