t7501: add test of "commit --dry-run --short"
[gitweb.git] / preload-index.c
index 4d08d4487460f839f39f667c714f1bb85fa1e144..71cd2437a3b33b343696bf96067603e8dc9e4464 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;