public static FileBasedConfig config_System(this API_NGit nGit) { var fs = NGit.Util.FS.DETECTED; var globalConfig = nGit.config_Global(); var systemReader = NGit.Util.SystemReader.GetInstance(); var systemConfig = systemReader.OpenSystemConfig(globalConfig, fs); //var systemReader = NGit.Util.SystemReader.GetInstance(); //var systemConfig = systemReader.OpenSystemConfig(null, fs); systemConfig.Load(); return(systemConfig); }