Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  read-tree --aggressive: remove deleted entry from the working tree.
  • Loading branch information
Junio C Hamano committed Mar 2, 2006
2 parents 70e1cca + 1142038 commit 2486927
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,11 @@ static int threeway_merge(struct cache_entry **stages)
*/
if ((head_deleted && remote_deleted) ||
(head_deleted && remote && remote_match) ||
(remote_deleted && head && head_match))
(remote_deleted && head && head_match)) {
if (index)
return deleted_entry(index, index);
return 0;

}
/*
* Added in both, identically.
*/
Expand Down

0 comments on commit 2486927

Please sign in to comment.