Skip to content

Commit 72140a7

Browse files
committed
Merge branch 'jc/http-sslkey-and-ssl-cert-are-paths' into maint
The http.{sslkey,sslCert} configuration variables are to be interpreted as a pathname that honors "~[username]/" prefix, but weren't, which has been fixed. * jc/http-sslkey-and-ssl-cert-are-paths: http.c: http.sslcert and http.sslkey are both pathnames
2 parents 447f80f + 8d15496 commit 72140a7

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
@@ -272,10 +272,10 @@ static int http_options(const char *var, const char *value, void *cb)
272272
if (!strcmp("http.sslversion", var))
273273
return git_config_string(&ssl_version, var, value);
274274
if (!strcmp("http.sslcert", var))
275-
return git_config_string(&ssl_cert, var, value);
275+
return git_config_pathname(&ssl_cert, var, value);
276276
#if LIBCURL_VERSION_NUM >= 0x070903
277277
if (!strcmp("http.sslkey", var))
278-
return git_config_string(&ssl_key, var, value);
278+
return git_config_pathname(&ssl_key, var, value);
279279
#endif
280280
#if LIBCURL_VERSION_NUM >= 0x070908
281281
if (!strcmp("http.sslcapath", var))

0 commit comments

Comments
 (0)