aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-06-23 10:09:27 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-06-23 17:29:37 -0700
commit8e396bcddc2c945a2a90f6842c1a481a16c7be52 (patch)
treebb21bbd696ac83cdbb8a2361679678c8c0b4a2f0 /org.eclipse.jgit
parentdc10dd6fc85e1c6c69c74ff64db8f4c8c7c4c50b (diff)
downloadjgit-8e396bcddc2c945a2a90f6842c1a481a16c7be52.tar.gz
jgit-8e396bcddc2c945a2a90f6842c1a481a16c7be52.zip
Use higher level Config types when possible
We don't have to assume/depend on RepositoryConfig here, these two tests can use higher level versions of the class and still come up with the same test. That frees us up to do some changes to the RepositoryConfig API. Change-Id: Ia7b263c8c5efa3fae1054416d39c546867288132 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java
index 5da33fd6bb..42c16cb108 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java
@@ -352,7 +352,7 @@ public class GitIndex {
// to change this for testing.
if (filemode != null)
return filemode.booleanValue();
- RepositoryConfig config = db.getConfig();
+ Config config = db.getConfig();
filemode = Boolean.valueOf(config.getBoolean("core", null, "filemode", true));
return filemode.booleanValue();
}