git-core: Support retrieving passwords with GIT_ASKPASS
[gitweb.git] / imap-send.c
index 5631930bc3462c5d85d29e7e840f1cf24cd7111b..5254b2a2785bd41394ff0107fa9476dd189e16e3 100644 (file)
@@ -1107,7 +1107,7 @@ static struct store *imap_open_store(struct imap_server_conf *srvc)
                if (!srvc->pass) {
                        char prompt[80];
                        sprintf(prompt, "Password (%s@%s): ", srvc->user, srvc->host);
-                       arg = getpass(prompt);
+                       arg = git_getpass(prompt);
                        if (!arg) {
                                perror("getpass");
                                exit(1);