We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f25da1e + 7804339 commit a468f1dCopy full SHA for a468f1d
config.c
@@ -1662,9 +1662,11 @@ static int git_config_from_blob_ref(config_fn_t fn,
1662
1663
const char *git_etc_gitconfig(void)
1664
{
1665
- static const char *system_wide;
1666
- if (!system_wide)
+ static char *system_wide;
+ if (!system_wide) {
1667
system_wide = system_path(ETC_GITCONFIG);
1668
+ normalize_path_copy(system_wide, system_wide);
1669
+ }
1670
return system_wide;
1671
}
1672
0 commit comments