ls-files: correct index argument to get_convert_attr_ascii()
[gitweb.git] / builtin / rm.c
index 65b448ef8ee91079194841762d4b7a2193eec9a9..eebdc4aab17d6b96c8f4ba79668d9121ce82f49f 100644 (file)
@@ -278,7 +278,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
 
        for (i = 0; i < active_nr; i++) {
                const struct cache_entry *ce = active_cache[i];
-               if (!ce_path_match(ce, &pathspec, seen))
+               if (!ce_path_match(&the_index, ce, &pathspec, seen))
                        continue;
                ALLOC_GROW(list.entry, list.nr + 1, list.alloc);
                list.entry[list.nr].name = xstrdup(ce->name);