http: treat config options sslCAPath and sslCAInfo as paths

This enables ~ and ~user expansion for these config options. Signed-off-by: Charles Bailey <cbailey32@bloomberg.net> Signed-off-by: Jeff King <peff@peff.net>

Charles Bailey committed Nov 23, 2015 at 12:02 UTC bf9acba2c121ff0e2ac5b61018f23bc56bbde542
1 file changed +2 -2
http.c
+2 -2
@@ -215,10 +215,10 @@ static int http_options(const char *var, const char *value, void *cb)
215 #endif
216 #if LIBCURL_VERSION_NUM >= 0x070908
217 if (!strcmp("http.sslcapath", var))
218 - return git_config_string(&ssl_capath, var, value);
218 + return git_config_pathname(&ssl_capath, var, value);
219 #endif
220 if (!strcmp("http.sslcainfo", var))
221 - return git_config_string(&ssl_cainfo, var, value);
221 + return git_config_pathname(&ssl_cainfo, var, value);
222 if (!strcmp("http.sslcertpasswordprotected", var)) {
223 ssl_cert_password_required = git_config_bool(var, value);
224 return 0;