diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2010-06-13 03:16:32 +0200 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2010-06-13 03:16:32 +0200 |
commit | 3bf96dd04bc9bcd59765e9f448473868aa493bb7 (patch) | |
tree | 93df0e6f7693a7b5e699ec6a536ca1b8f00c82ee | |
parent | 3a2a43a1dcc27fd5c40a9b5fcbcd185c0a20769c (diff) | |
download | jgit-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.java | 3 |
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 */ |