Commit dd78d7d1 by Patrick Steinhardt Committed by Edward Thomson

blame_git: handle error returned by `git_commit_parent`

parent 8d3ee96a
......@@ -525,7 +525,8 @@ static int pass_blame(git_blame *blame, git_blame__origin *origin, uint32_t opt)
if (sg_origin[i])
continue;
git_commit_parent(&p, origin->commit, i);
if ((error = git_commit_parent(&p, origin->commit, i)) < 0)
goto finish;
porigin = find_origin(blame, p, origin);
if (!porigin)
......
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