summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rene Bredlau <git@unrelated.de>2012-12-21 17:31:19 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-12-21 10:19:40 -0800
commit75e9a405d4a3fdf9d84282c5fac065257887fd96 (patch)
tree73055c8e182f4726ce1559120843ef3082553172
parentt7004: do not create unneeded gpghome/gpg.conf when GPG is not used (diff)
downloadtgif-75e9a405d4a3fdf9d84282c5fac065257887fd96.tar.xz
http.c: Avoid username prompt for certifcate credentials
If sslCertPasswordProtected is set to true do not ask for username to decrypt rsa key. This question is pointless, the key is only protected by a password. Internaly the username is simply set to "". Signed-off-by: Rene Bredlau <git@unrelated.de> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index f9a9de1416..0b32cc6a29 100644
--- a/http.c
+++ b/http.c
@@ -236,6 +236,7 @@ static int has_cert_password(void)
return 0;
if (!cert_auth.password) {
cert_auth.protocol = xstrdup("cert");
+ cert_auth.username = xstrdup("");
cert_auth.path = xstrdup(ssl_cert);
credential_fill(&cert_auth);
}