Skip to content

Commit bf9acba

Browse files
hashplingpeff
authored andcommitted
http: treat config options sslCAPath and sslCAInfo as paths
This enables ~ and ~user expansion for these config options. Signed-off-by: Charles Bailey <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 5cb2e16 commit bf9acba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ static int http_options(const char *var, const char *value, void *cb)
215215
#endif
216216
#if LIBCURL_VERSION_NUM >= 0x070908
217217
if (!strcmp("http.sslcapath", var))
218-
return git_config_string(&ssl_capath, var, value);
218+
return git_config_pathname(&ssl_capath, var, value);
219219
#endif
220220
if (!strcmp("http.sslcainfo", var))
221-
return git_config_string(&ssl_cainfo, var, value);
221+
return git_config_pathname(&ssl_cainfo, var, value);
222222
if (!strcmp("http.sslcertpasswordprotected", var)) {
223223
ssl_cert_password_required = git_config_bool(var, value);
224224
return 0;

0 commit comments

Comments
 (0)