mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 08:48:47 +00:00
blame_git: handle error returned by git_commit_parent
This commit is contained in:
parent
8d3ee96ada
commit
dd78d7d15b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user