]> source.dussan.org Git - jgit.git/commitdiff
Cache filemode in GitIndex 48/848/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 13 Jun 2010 01:16:32 +0000 (03:16 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 13 Jun 2010 01:16:32 +0000 (03:16 +0200)
Apparently this was the intention, but never happened

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java

index d5cab0e4c6a6ffbb45a14f7c495d04bba84bebe5..5da33fd6bbcb15cdbb57f5e9bd49dbd13e993c0e 100644 (file)
@@ -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 */