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>
Rene Bredlau committed
Dec 21, 2012 at 17:31 UTC
75e9a405d4a3fdf9d84282c5fac065257887fd96
1 file changed
+1
http.c
+1
@@ -236,6 +236,7 @@ static int has_cert_password(void)
236
return 0;
237
if (!cert_auth.password) {
238
cert_auth.protocol = xstrdup("cert");
239
+ cert_auth.username = xstrdup("");
240
cert_auth.path = xstrdup(ssl_cert);
241
credential_fill(&cert_auth);
242
}