git: use a custom script for GIT_ASKPASS instead of true
commitd5c8b07f2e59415088f0439591f724748ce7f6ab
authorKyle J. McKay <mackyle@gmail.com>
Tue, 3 Feb 2015 19:39:57 +0000 (3 11:39 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 3 Feb 2015 19:39:57 +0000 (3 11:39 -0800)
treeecff1017429f0fc11faae92ad098d31eef7c86c9
parentee968193501243b56d4bcedbb3da800c63e472c7
git: use a custom script for GIT_ASKPASS instead of true

Setting GIT_ASKPASS to true should result in an empty password.

However, since it doesn't actually output anything, there's no
trailing \n after the empty password.

This causes problems for git-svn that expects the password to
be followed by a \n and can cause unsightly core dumps therein.

Instead set GIT_ASKPASS to a custom script that outputs the
value of the GIT_ASKPASS_PASSWORD environment variable followed
by a newline.  This makes git-svn happy and allows a non-empty
password to be easily passed from a script if desired.
Girocco/Config.pm
bin/git-askpass-password [new file with mode: 0755]
bin/git-shell-verify
jailsetup.sh
shlib.sh