mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-02 21:19:37 +00:00
diff: stop processing nitem when its removed
When a directory is removed out from underneath us, stop trying to manipulate it.
This commit is contained in:
parent
0a2e10328a
commit
6788553231
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user