Commit b5f90115 by nulltoken

revparse: fix propagation of error

parent 5a6f31f2
......@@ -151,7 +151,7 @@ static int revparse_lookup_object(git_object **out, git_repository *repo, const
if (!error) {
error = git_object_lookup(out, repo, git_reference_oid(ref), GIT_OBJ_ANY);
git_reference_free(ref);
return 0;
return error;
}
if (error < 0 && error != GIT_ENOTFOUND)
......
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