Commit 67885532 by Edward Thomson

diff: stop processing nitem when its removed

When a directory is removed out from underneath us, stop trying to
manipulate it.
parent 0a2e1032
......@@ -1091,7 +1091,7 @@ static int handle_unmatched_new_item(
/* if directory is empty, can't advance into it, so either skip
* it or ignore it
*/
if (contains_oitem)
if (error == GIT_ENOTFOUND || contains_oitem)
return iterator_advance(&info->nitem, info->new_iter);
delta_type = GIT_DELTA_IGNORED;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment