Merge branch 'js/etc-config'
* js/etc-config: Make tests independent of global config files config: read system-wide defaults from /etc/gitconfig
This commit is contained in:
2
config.c
2
config.c
@ -394,6 +394,8 @@ int git_config(config_fn_t fn)
|
||||
* config file otherwise. */
|
||||
filename = getenv(CONFIG_ENVIRONMENT);
|
||||
if (!filename) {
|
||||
if (!access(ETC_GITCONFIG, R_OK))
|
||||
ret += git_config_from_file(fn, ETC_GITCONFIG);
|
||||
home = getenv("HOME");
|
||||
filename = getenv(CONFIG_LOCAL_ENVIRONMENT);
|
||||
if (!filename)
|
||||
|
Reference in New Issue
Block a user