Commit 6e9afb97 by Carlos Martín Nieto

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.
parent d2c16e9a
...@@ -375,7 +375,7 @@ int git_object_lookup_bypath( ...@@ -375,7 +375,7 @@ int git_object_lookup_bypath(
assert(out && treeish && path); 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) (error = git_tree_entry_bypath(&entry, tree, path)) < 0)
{ {
goto cleanup; goto cleanup;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment