summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e84fb0)
raw | patch | inline | side by side (parent: 0e84fb0)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Jun 2006 07:10:48 +0000 (00:10 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Jun 2006 07:10:48 +0000 (00:10 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-read-tree.c | patch | blob | history |
diff --git a/builtin-read-tree.c b/builtin-read-tree.c
index cc61c2d8130da09a7fafe96e94017f1d28eec655..7164b49054e25bdb849f57023a8cf05b85f783c8 100644 (file)
--- a/builtin-read-tree.c
+++ b/builtin-read-tree.c
return error("Cannot do a oneway merge of %d trees",
merge_size);
- if (!a) {
- invalidate_ce_path(old);
+ if (!a)
return deleted_entry(old, old);
- }
if (old && same(old, a)) {
if (reset) {
struct stat st;
* valid cache-tree because the index must match exactly
* what came from the tree.
*/
- if (trees && trees->item && (!merge || (stage == 2))) {
+ if (trees && trees->item && !prefix && (!merge || (stage == 2))) {
cache_tree_free(&active_cache_tree);
prime_cache_tree();
}