http.c: fix parsing of http.sslCertPasswordProtected variable

The existing code triggers only when the configuration variable is set to true. Once the variable is set to true in a more generic configuration file (e.g. ~/.gitconfig), it cannot be overriden to false in the repository specific one (e.g. .git/config). Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jul 12, 2013 at 11:52 UTC 3f4ccd2b0be476dfc3b556c71797712332bae00c
1 file changed +1 -2
http.c
+1 -2
@@ -160,8 +160,7 @@ static int http_options(const char *var, const char *value, void *cb)
160 if (!strcmp("http.sslcainfo", var))
161 return git_config_string(&ssl_cainfo, var, value);
162 if (!strcmp("http.sslcertpasswordprotected", var)) {
163 - if (git_config_bool(var, value))
164 - ssl_cert_password_required = 1;
163 + ssl_cert_password_required = git_config_bool(var, value);
164 return 0;
165 }
166 if (!strcmp("http.ssltry", var)) {