mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 14:02:57 +00:00
index: Return GIT_ENOTFOUND
when an entry cannot be opened
This commit is contained in:
parent
d102bbba46
commit
f0ab9fda8b
@ -427,7 +427,7 @@ static int index_init_entry(git_index_entry *entry, git_index *index, const char
|
||||
git_path_join(full_path, index->repository->path_workdir, rel_path);
|
||||
|
||||
if (p_lstat(full_path, &st) < 0)
|
||||
return git__throw(GIT_EOSERR, "Failed to initialize entry. '%s' cannot be opened", full_path);
|
||||
return git__throw(GIT_ENOTFOUND, "Failed to initialize entry. '%s' cannot be opened", full_path);
|
||||
|
||||
if (stage < 0 || stage > 3)
|
||||
return git__throw(GIT_ERROR, "Failed to initialize entry. Invalid stage %i", stage);
|
||||
|
Loading…
Reference in New Issue
Block a user