git-fetch: do not look into $GIT_DIR/refs to see if a tag exists.
[gitweb.git] / builtin-mv.c
index 4d21d88412cac52cbd5d127de439abc3e172b352..54dd3bfe8ac787fda32f3557faac00c65a61de96 100644 (file)
@@ -278,6 +278,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
                for (i = 0; i < deleted.nr; i++) {
                        const char *path = deleted.items[i].path;
                        remove_file_from_cache(path);
+                       cache_tree_invalidate_path(active_cache_tree, path);
                }
 
                if (active_cache_changed) {