subtree: improve decision on merges kept in split
[gitweb.git] / preload-index.c
index d7f7919ba2ec828fce3fe95fc58884923568ea26..f7365761f4725d6f7ddbb6d8c9c8fe92488de6ce 100644 (file)
@@ -58,7 +58,7 @@ static void *preload_thread(void *_data)
                        continue;
                if (ce->ce_flags & CE_FSMONITOR_VALID)
                        continue;
-               if (!ce_path_match(ce, &p->pathspec, NULL))
+               if (!ce_path_match(index, ce, &p->pathspec, NULL))
                        continue;
                if (threaded_has_symlink_leading_path(&cache, ce->name, ce_namelen(ce)))
                        continue;