summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2010-06-13 03:16:32 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2010-06-13 03:16:32 +0200
commit3bf96dd04bc9bcd59765e9f448473868aa493bb7 (patch)
tree93df0e6f7693a7b5e699ec6a536ca1b8f00c82ee
parent3a2a43a1dcc27fd5c40a9b5fcbcd185c0a20769c (diff)
downloadjgit-3bf96dd04bc9bcd59765e9f448473868aa493bb7.tar.gz
jgit-3bf96dd04bc9bcd59765e9f448473868aa493bb7.zip
Cache filemode in GitIndex
Apparently this was the intention, but never happened Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java3
1 files changed, 2 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 d5cab0e4c6..5da33fd6bb 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java
@@ -353,7 +353,8 @@ public class GitIndex {
if (filemode != null)
return filemode.booleanValue();
RepositoryConfig config = db.getConfig();
- return config.getBoolean("core", null, "filemode", true);
+ filemode = Boolean.valueOf(config.getBoolean("core", null, "filemode", true));
+ return filemode.booleanValue();
}
/** An index entry */