From: Rene Bredlau Date: Fri, 21 Dec 2012 16:31:19 +0000 (+0100) Subject: http.c: Avoid username prompt for certifcate credentials X-Git-Tag: v1.8.1.1~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75e9a405d4a3fdf9d84282c5fac065257887fd96;p=thirdparty%2Fgit.git 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 Acked-by: Jeff King Signed-off-by: Junio C Hamano --- 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); }