Skip to content

Commit

Permalink
Merge branch 'ow/config-mailmap-pathname'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Jun 16, 2014
2 parents c9fc3a6 + 9352fd5 commit c37d326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c37d326

Please sign in to comment.