dir.c: remove an implicit dependency on the_index in pathspec code
[gitweb.git] / preload-index.c
index 4d08d4487460f839f39f667c714f1bb85fa1e144..d61d7662d5830866dd2d6d657a678d09b0886787 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(&the_index, ce, &p->pathspec, NULL))
                        continue;
                if (threaded_has_symlink_leading_path(&cache, ce->name, ce_namelen(ce)))
                        continue;