summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-10 14:03:54 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-10 14:03:54 -0800
commit8bc714b4088d162ac4a7327d672139a0c2907917 (patch)
tree5db78fa39db78850714bce15694602e6c040845a /http.c
parent283b365e4521082ab37d93762bb2f049dc38bee8 (diff)
parent75e9a405d4a3fdf9d84282c5fac065257887fd96 (diff)
downloadgit-8bc714b4088d162ac4a7327d672139a0c2907917.tar.gz
Merge branch 'rb/http-cert-cred-no-username-prompt' into maint
* rb/http-cert-cred-no-username-prompt: http.c: Avoid username prompt for certifcate credentials
Diffstat (limited to 'http.c')
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index 0a8abf3be3..44f35256e4 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);
}