mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-24 05:21:25 +00:00
index: remove error message in non-error remove
If `git_index_remove_bypath` does no work, and returns an OK error code, it should not set an error message.
This commit is contained in:
parent
ecd60a56eb
commit
3ab5a65967
@ -1173,6 +1173,9 @@ int git_index_remove_bypath(git_index *index, const char *path)
|
|||||||
ret != GIT_ENOTFOUND))
|
ret != GIT_ENOTFOUND))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (ret == GIT_ENOTFOUND)
|
||||||
|
giterr_clear();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user