summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 12:18:24 -0700
committerJunio C Hamano <gitster@pobox.com>2014-06-16 12:18:24 -0700
commitc37d3269d92eedbdf405a6f196253d120e8e2721 (patch)
tree92d4f3a8f6c31e0cacd55695b090bd15a7da7a26 /config.c
parentc9fc3a6ac5011ce03e8132973687d1242807dc6c (diff)
parent9352fd570876ea0faf9f12251ecea06954fbe59b (diff)
downloadgit-c37d3269d92eedbdf405a6f196253d120e8e2721.tar.gz
Merge branch 'ow/config-mailmap-pathname'
mailmap.file configuration names a pathname, hence should honor ~/path and ~user/path as its value. * ow/config-mailmap-pathname: config: respect '~' and '~user' in mailmap.file
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 3e21fecb6a..a1aef1cf3e 100644
--- a/config.c
+++ b/config.c
@@ -953,7 +953,7 @@ static int git_default_push_config(const char *var, const char *value)
static int git_default_mailmap_config(const char *var, const char *value)
{
if (!strcmp(var, "mailmap.file"))
- return git_config_string(&git_mailmap_file, var, value);
+ return git_config_pathname(&git_mailmap_file, var, value);
if (!strcmp(var, "mailmap.blob"))
return git_config_string(&git_mailmap_blob, var, value);