Fix index preloading for racy dirty case
[gitweb.git] / preload-index.c
index 6253578c9683c981144433c8da210e763e38f274..a6855837a4b85e475d556527335d89c8b0e3a02c 100644 (file)
@@ -43,7 +43,7 @@ static void *preload_thread(void *_data)
                        continue;
                if (lstat(ce->name, &st))
                        continue;
-               if (ie_match_stat(index, ce, &st, 0))
+               if (ie_match_stat(index, ce, &st, CE_MATCH_RACY_IS_DIRTY))
                        continue;
                ce_mark_uptodate(ce);
        } while (--nr > 0);