Skip to content

Commit 3ebb073

Browse files
author
Vladimir Kotal
committed
do not call createCache() for repositories without history for directories
it cannot create the cache anyway
1 parent 701fae2 commit 3ebb073

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/HistoryGuru.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,8 @@ public void ensureHistoryCacheExists(File file) throws HistoryException {
747747
return;
748748
}
749749

750-
if (historyCache.hasCacheForDirectory(file, repository)) {
750+
if (!repository.hasHistoryForDirectories() ||
751+
historyCache.hasCacheForDirectory(file, repository)) {
751752
return;
752753
}
753754

0 commit comments

Comments
 (0)