diff options
author | Rene Bredlau <git@unrelated.de> | 2012-12-21 17:31:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-21 10:19:40 -0800 |
commit | 75e9a405d4a3fdf9d84282c5fac065257887fd96 (patch) | |
tree | 73055c8e182f4726ce1559120843ef3082553172 /http.c | |
parent | 086cb911533d6f4233e84c93b08da289ecc8a229 (diff) | |
download | git-75e9a405d4a3fdf9d84282c5fac065257887fd96.tar.gz git-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>
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |