Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java
index 2d9f44aad8..23aca37948 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java
@@ -83,9 +83,12 @@ public class CoreConfig {
private final String excludesfile;
private CoreConfig(final Config rc) {
- compression = rc.getInt("core", "compression", DEFAULT_COMPRESSION);
- packIndexVersion = rc.getInt("pack", "indexversion", 2);
- logAllRefUpdates = rc.getBoolean("core", "logallrefupdates", true);
+ compression = rc.getInt(ConfigConstants.CONFIG_CORE_SECTION,
+ ConfigConstants.CONFIG_KEY_COMPRESSION, DEFAULT_COMPRESSION);
+ packIndexVersion = rc.getInt(ConfigConstants.CONFIG_PACK_SECTION,
+ ConfigConstants.CONFIG_KEY_INDEXVERSION, 2);
+ logAllRefUpdates = rc.getBoolean(ConfigConstants.CONFIG_CORE_SECTION,
+ ConfigConstants.CONFIG_KEY_LOGALLREFUPDATES, true);
excludesfile = rc.getString(ConfigConstants.CONFIG_CORE_SECTION, null,
ConfigConstants.CONFIG_KEY_EXCLUDESFILE);
}

Back to the top