git-read-tree: remove deleted files in the working directory

Only when "-u" is used of course.
This commit is contained in:
Linus Torvalds
2005-06-09 15:34:04 -07:00
parent 22f77b772d
commit aa16021efc
2 changed files with 20 additions and 6 deletions

View File

@ -452,6 +452,8 @@ int write_cache(int newfd, struct cache_entry **cache, int entries)
for (i = 0; i < entries; i++) {
struct cache_entry *ce = cache[i];
if (!ce->ce_mode)
continue;
if (ce_write(&c, newfd, ce, ce_size(ce)) < 0)
return -1;
}