Skip to content

Commit

Permalink
read-tree: invalidate cache-tree entry when a new index entry is added.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 3, 2006
1 parent a84faf7 commit c2b9ae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2b9ae4

Please sign in to comment.