}
public FileBasedConfig openSystemConfig(Config parent, FS fs) {
- File prefix = fs.gitPrefix();
- if (prefix == null) {
+ File configFile = fs.discoverGitSystemConfig();
+ if (configFile == null) {
return new FileBasedConfig(null, fs) {
public void load() {
// empty, do not load
}
};
}
- File etc = fs.resolve(prefix, "etc"); //$NON-NLS-1$
- File config = fs.resolve(etc, "gitconfig"); //$NON-NLS-1$
- return new FileBasedConfig(parent, config, fs);
+ return new FileBasedConfig(parent, configFile, fs);
}
public FileBasedConfig openUserConfig(Config parent, FS fs) {