summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2016-05-04 11:42:15 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-04 15:59:26 -0700
commite5a39ad8e67d61f1f7dfb6ef9d9127a8b11da72c (patch)
treeb58154ac045341d139d1005f198f47f21f6a7e3c /http.c
parent06ea368bb160af9684a3484c78fddc5af16476ef (diff)
downloadgit-e5a39ad8e67d61f1f7dfb6ef9d9127a8b11da72c.tar.gz
http: expand http.cookieFile as a pathbn/http-cookiefile-config
This should handle .gitconfig files that specify things like: [http] cookieFile = "~/.gitcookies" Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index c29ce81ccc..1b4520c626 100644
--- a/http.c
+++ b/http.c
@@ -258,7 +258,7 @@ static int http_options(const char *var, const char *value, void *cb)
return git_config_string(&curl_http_proxy, 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;