Skip to content

Commit 459000e

Browse files
committed
Merge branch 'bn/http-cookiefile-config'
"http.cookieFile" configuration variable clearly wants a pathname, but we forgot to treat it as such by e.g. applying tilde expansion. * bn/http-cookiefile-config: http: expand http.cookieFile as a path Documentation: config: improve word ordering for http.cookieFile
2 parents 6675f50 + e5a39ad commit 459000e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Documentation/config.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,11 +1679,12 @@ http.extraHeader::
16791679
config, an empty value will reset the extra headers to the empty list.
16801680

16811681
http.cookieFile::
1682-
File containing previously stored cookie lines which should be used
1682+
The pathname of a file containing previously stored cookie lines,
1683+
which should be used
16831684
in the Git http session, if they match the server. The file format
16841685
of the file to read cookies from should be plain HTTP headers or
16851686
the Netscape/Mozilla cookie file format (see linkgit:curl[1]).
1686-
NOTE that the file specified with http.cookieFile is only used as
1687+
NOTE that the file specified with http.cookieFile is used only as
16871688
input unless http.saveCookies is set.
16881689

16891690
http.saveCookies::

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static int http_options(const char *var, const char *value, void *cb)
294294
return git_config_string(&http_proxy_authmethod, var, value);
295295

296296
if (!strcmp("http.cookiefile", var))
297-
return git_config_string(&curl_cookie_file, var, value);
297+
return git_config_pathname(&curl_cookie_file, var, value);
298298
if (!strcmp("http.savecookies", var)) {
299299
curl_save_cookies = git_config_bool(var, value);
300300
return 0;

0 commit comments

Comments
 (0)