Skip to content


Merge pull request #2370 from dscho/prettify-etc-gitconfig-path
Browse files Browse the repository at this point in the history
config: normalize the path of the system gitconfig
  • Loading branch information
dscho committed Oct 25, 2019
2 parents 631336f + 3a5522c commit d1d8fc2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1657,9 +1657,11 @@ static int git_config_from_blob_ref(config_fn_t fn,

const char *git_etc_gitconfig(void)
static const char *system_wide;
if (!system_wide)
static char *system_wide;
if (!system_wide) {
system_wide = system_path(ETC_GITCONFIG);
normalize_path_copy(system_wide, system_wide);
return system_wide;

Expand Down

0 comments on commit d1d8fc2

Please sign in to comment.