mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 16:45:49 +00:00
missing error message is confusing
This commit is contained in:
parent
6ac724afbe
commit
6fee906c98
@ -814,7 +814,10 @@ int git_index_find(git_index *index, const char *path)
|
||||
|
||||
if ((pos = git_vector_bsearch2(
|
||||
&index->entries, index->entries_search_path, path)) < 0)
|
||||
{
|
||||
giterr_set(GITERR_INDEX, "Index does not contain %s", path);
|
||||
return pos;
|
||||
}
|
||||
|
||||
/* Since our binary search only looked at path, we may be in the
|
||||
* middle of a list of stages.
|
||||
|
Loading…
Reference in New Issue
Block a user