X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-rm.c;h=f3772c84de0a1f1a18123e55ae6e6983739f590b;hb=00588bb5cd4a7ff5e2b1ded97d4459bfe6aad6eb;hp=57975dbcfd7c0dbcba03b88a1bf403f1ec5f528c;hpb=00d3278c8534a8244ae3447189401111e017fd5d;p=git.git diff --git a/builtin-rm.c b/builtin-rm.c index 57975dbcf..f3772c84d 100644 --- a/builtin-rm.c +++ b/builtin-rm.c @@ -169,9 +169,10 @@ int cmd_rm(int argc, const char **argv, const char *prefix) if (read_cache() < 0) die("index file corrupt"); - refresh_cache(REFRESH_QUIET); pathspec = get_pathspec(prefix, argv); + refresh_index(&the_index, REFRESH_QUIET, pathspec, NULL, NULL); + seen = NULL; for (i = 0; pathspec[i] ; i++) /* nothing */;