Cache filemode in GitIndex

Apparently this was the intention, but never happened

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
This commit is contained in:
Robin Rosenberg 2010-06-13 03:16:32 +02:00
parent 3a2a43a1dc
commit 3bf96dd04b
1 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,8 @@ private boolean config_filemode() {
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 */