From 75e9a405d4a3fdf9d84282c5fac065257887fd96 Mon Sep 17 00:00:00 2001 From: Rene Bredlau Date: Fri, 21 Dec 2012 17:31:19 +0100 Subject: [PATCH] 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 --- http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/http.c b/http.c index f9a9de141..0b32cc6a2 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); } -- 2.26.2