Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ls-remote: a lone "-h" is asking for help
[gitweb.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index e296bfca1896b432376ea98cf92db46d7120a062..3450cabd0e3281e0eeedeb35d331b95bf95f5afb 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-629,7
+629,8
@@
char *git_getpass(const char *prompt)
askpass = getenv("GIT_ASKPASS");
if (!askpass)
askpass = askpass_program;
-
+ if (!askpass)
+ askpass = getenv("SSH_ASKPASS");
if (!askpass || !(*askpass))
return getpass(prompt);