mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 12:57:05 +00:00
object: fix a brace
The brace in the check for peel's return was surrounding the wrong thing, which made 'error' be set to 1 when there was an error instead of the error code.
This commit is contained in:
parent
d2c16e9ac4
commit
6e9afb97d1
@ -375,7 +375,7 @@ int git_object_lookup_bypath(
|
||||
|
||||
assert(out && treeish && path);
|
||||
|
||||
if ((error = git_object_peel((git_object**)&tree, treeish, GIT_OBJ_TREE) < 0) ||
|
||||
if ((error = git_object_peel((git_object**)&tree, treeish, GIT_OBJ_TREE)) < 0 ||
|
||||
(error = git_tree_entry_bypath(&entry, tree, path)) < 0)
|
||||
{
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user