summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Øystein Walle <oystwa@gmail.com>2014-05-27 10:45:58 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-05-27 12:59:32 -0700
commit9352fd570876ea0faf9f12251ecea06954fbe59b (patch)
treeb15d08e9d341cec91f2e78936d5aba3abe543789
parentGit 1.9.3 (diff)
downloadtgif-9352fd570876ea0faf9f12251ecea06954fbe59b.tar.xz
config: respect '~' and '~user' in mailmap.file
git_config_string() does not handle '~' and '~user' as part of the value. Using git_config_pathname() fixes this. Signed-off-by: Øystein Walle <oystwa@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 314d8ee740..ec7af5f0ae 100644
--- a/config.c
+++ b/config.c
@@ -963,7 +963,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);