Skip to content

Commit

Permalink
Merge branch 'jc/read-tree'
Browse files Browse the repository at this point in the history
* jc/read-tree:
  checkout -f failed to check out a file if an existing directory interfered.
  • Loading branch information
Junio C Hamano committed Jul 25, 2006
2 parents 83e12e5 + f8f0b1f commit 325ba14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ static int merged_entry(struct cache_entry *merge, struct cache_entry *old)
}

merge->ce_flags &= ~htons(CE_STAGEMASK);
add_cache_entry(merge, ADD_CACHE_OK_TO_ADD);
add_cache_entry(merge, ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE);
return 1;
}

Expand All @@ -518,7 +518,7 @@ static int deleted_entry(struct cache_entry *ce, struct cache_entry *old)
else
verify_absent(ce->name, "removed");
ce->ce_mode = 0;
add_cache_entry(ce, ADD_CACHE_OK_TO_ADD);
add_cache_entry(ce, ADD_CACHE_OK_TO_ADD|ADD_CACHE_OK_TO_REPLACE);
invalidate_ce_path(ce);
return 1;
}
Expand Down

0 comments on commit 325ba14

Please sign in to comment.