summaryrefslogtreecommitdiff
path: root/builtin-mv.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-02 00:47:32 -0700
committerJunio C Hamano <junkio@cox.net>2006-10-02 00:47:32 -0700
commitf5961572a02ef08324f297fe93b704ff2137e5a6 (patch)
tree87819ae5462ebafe6a849cf5ee3751a210d148ff /builtin-mv.c
parent7c2738cefb07e6549cafa42d1d383a3bb54ed0f3 (diff)
parent6fe5b7ff6cafcc94415deba2f3d611770d8e6b1e (diff)
downloadgit-f5961572a02ef08324f297fe93b704ff2137e5a6.tar.gz
Merge branch 'maint'
* maint: git-push: .git/remotes/ file does not require SP after colon git-mv: invalidate the removed path properly in cache-tree
Diffstat (limited to 'builtin-mv.c')
-rw-r--r--builtin-mv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-mv.c b/builtin-mv.c
index 4d21d88412..54dd3bfe8a 100644
--- a/builtin-mv.c
+++ b/builtin-mv.c
@@ -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) {