mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 04:29:36 +00:00
merge-base: Do not read parents from the root
This commit is contained in:
parent
136a71f4ee
commit
4cacf5b594
@ -318,7 +318,7 @@ static void clear_commit_marks_1(git_commit_list **plist,
|
||||
git_commit_list_insert(p, plist);
|
||||
}
|
||||
|
||||
commit = commit->parents[0];
|
||||
commit = commit->out_degree ? commit->parents[0] : NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user