aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-17 14:38:18 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-17 14:38:18 -0700
commit459000ef630f99c5f94c92110a5305240a9ef281 (patch)
treeca8d05d8a87a2df1e04c7c3b75e49aae8662fc3c
parent6675f501f6b987dbdb0dbeb1d2efeb5a27fc41a7 (diff)
parente5a39ad8e67d61f1f7dfb6ef9d9127a8b11da72c (diff)
downloadgit-459000ef630f99c5f94c92110a5305240a9ef281.tar.gz
git-459000ef630f99c5f94c92110a5305240a9ef281.tar.xz
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
-rw-r--r--Documentation/config.txt5
-rw-r--r--http.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 6e97e1e05..536b6e624 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1679,11 +1679,12 @@ http.extraHeader::
config, an empty value will reset the extra headers to the empty list.
http.cookieFile::
- File containing previously stored cookie lines which should be used
+ The pathname of a file containing previously stored cookie lines,
+ which should be used
in the Git http session, if they match the server. The file format
of the file to read cookies from should be plain HTTP headers or
the Netscape/Mozilla cookie file format (see linkgit:curl[1]).
- NOTE that the file specified with http.cookieFile is only used as
+ NOTE that the file specified with http.cookieFile is used only as
input unless http.saveCookies is set.
http.saveCookies::
diff --git a/http.c b/http.c
index 985b995c1..6fe74d5ee 100644
--- a/http.c
+++ b/http.c
@@ -294,7 +294,7 @@ static int http_options(const char *var, const char *value, void *cb)
return git_config_string(&http_proxy_authmethod, var, value);
if (!strcmp("http.cookiefile", var))
- return git_config_string(&curl_cookie_file, var, value);
+ return git_config_pathname(&curl_cookie_file, var, value);
if (!strcmp("http.savecookies", var)) {
curl_save_cookies = git_config_bool(var, value);
return 0;