mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-06 21:53:29 +00:00
revparse: fix propagation of error
This commit is contained in:
parent
5a6f31f28b
commit
b5f9011524
@ -151,7 +151,7 @@ static int revparse_lookup_object(git_object **out, git_repository *repo, const
|
|||||||
if (!error) {
|
if (!error) {
|
||||||
error = git_object_lookup(out, repo, git_reference_oid(ref), GIT_OBJ_ANY);
|
error = git_object_lookup(out, repo, git_reference_oid(ref), GIT_OBJ_ANY);
|
||||||
git_reference_free(ref);
|
git_reference_free(ref);
|
||||||
return 0;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error < 0 && error != GIT_ENOTFOUND)
|
if (error < 0 && error != GIT_ENOTFOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user