Skip to content

Commit 712a12e

Browse files
committed
Merge branch 'cb/ssl-config-pathnames' into maint
Allow tilde-expansion in some http config variables. * cb/ssl-config-pathnames: http: treat config options sslCAPath and sslCAInfo as paths
2 parents 76fdb06 + bf9acba commit 712a12e

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)