mirror of
https://github.com/git/git.git
synced 2026-08-04 15:11:09 +00:00
read-tree: invalidate cache-tree entry when a new index entry is added.
When doing two-way merge, we failed to invalidate the directory that a new entry is added (we correctly did so for modified and deleted entries). Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@@ -446,6 +446,8 @@ static int merged_entry(struct cache_entry *merge, struct cache_entry *old)
|
||||
invalidate_ce_path(old);
|
||||
}
|
||||
}
|
||||
else
|
||||
invalidate_ce_path(merge);
|
||||
merge->ce_flags &= ~htons(CE_STAGEMASK);
|
||||
add_cache_entry(merge, ADD_CACHE_OK_TO_ADD);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user