dir.c: remove an implicit dependency on the_index in pathspec code
[gitweb.git] / builtin / update-index.c
index f5c0b6a1d23b203de5379cf898b70679857683ff..f75fd24083d18bed569946371a253d532a0b15b5 100644 (file)
@@ -748,7 +748,7 @@ static int do_reupdate(int ac, const char **av,
                int save_nr;
                char *path;
 
-               if (ce_stage(ce) || !ce_path_match(ce, &pathspec, NULL))
+               if (ce_stage(ce) || !ce_path_match(&the_index, ce, &pathspec, NULL))
                        continue;
                if (has_head)
                        old = read_one_ent(NULL, &head_oid,