Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix "git add -u" data corruption.
[gitweb.git]
/
builtin-add.c
diff --git
a/builtin-add.c
b/builtin-add.c
index 159117106a3db52b430cb1bf82d094e54693f690..a5fae7ca1723f277634b7a6f36af75e5dac26bbb 100644
(file)
--- a/
builtin-add.c
+++ b/
builtin-add.c
@@
-115,6
+115,7
@@
static void update_callback(struct diff_queue_struct *q,
break;
case DIFF_STATUS_DELETED:
remove_file_from_cache(path);
+ cache_tree_invalidate_path(active_cache_tree, path);
if (verbose)
printf("remove '%s'\n", path);
break;