Allow core.askpass to override SSH_ASKPASS.
[git/git.git] / connect.c
index e296bfc..3450cab 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);