mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-24 16:34:06 +00:00
blame_git: handle error returned by git_commit_parent
This commit is contained in:
parent
b27ccad274
commit
8a4a343a2b
@ -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