parse_pathspec: accept :(icase)path syntax
[gitweb.git] / builtin / rm.c
index ee0ae4c396cb1eb5be4c12549ae7f8eefef097eb..f08561d5fa22284415f681a54abb6d9dd1a3f8b9 100644 (file)
@@ -314,7 +314,7 @@ int cmd_rm(int argc, const char **argv, const char *prefix)
        }
 
        parse_pathspec(&pathspec, 0, PATHSPEC_PREFER_CWD, prefix, argv);
-       refresh_index(&the_index, REFRESH_QUIET, pathspec.raw, NULL, NULL);
+       refresh_index(&the_index, REFRESH_QUIET, &pathspec, NULL, NULL);
 
        seen = NULL;
        seen = xcalloc(pathspec.nr, 1);