@@ -730,9 +730,7 @@ private List<Repository> getReposFromString(Collection<String> repositories) {
730
730
731
731
/**
732
732
* Ensure that we have a directory in the cache. If it's not there, fetch
733
- * its history and populate the cache. If it's already there, and the cache
734
- * is able to tell how recent it is, attempt to update it to the most recent
735
- * revision.
733
+ * its history and populate the cache.
736
734
*
737
735
* @param file the root path to test
738
736
* @throws HistoryException if an error occurs while accessing the history
@@ -745,24 +743,15 @@ public void ensureHistoryCacheExists(File file) throws HistoryException {
745
743
746
744
Repository repository = getRepository (file );
747
745
if (repository == null ) {
748
- // no repository -> no history :(
746
+ // no repository -> no history
749
747
return ;
750
748
}
751
749
752
- String sinceRevision = null ;
753
-
754
750
if (historyCache .hasCacheForDirectory (file , repository )) {
755
- sinceRevision = historyCache .getLatestCachedRevision (repository );
756
- if (sinceRevision == null ) {
757
- // Cache already exists, but we don't know how recent it is,
758
- // so don't do anything.
759
- return ;
760
- }
751
+ return ;
761
752
}
762
753
763
- // Create cache from the beginning if it doesn't exist, or update it
764
- // incrementally otherwise.
765
- createCache (repository , sinceRevision );
754
+ createCache (repository , null );
766
755
}
767
756
768
757
protected Repository getRepository (File path ) {
0 commit comments