mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-10 17:12:14 +00:00
merge base: Correctly raise an error if a non-commit object is passed.
This commit is contained in:
parent
d28b2b7a5f
commit
017c0eac2b
@ -228,8 +228,11 @@ int git_merge__bases_many(git_commit_list **out, git_revwalk *walk, git_commit_l
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
git_vector_foreach(twos, i, two) {
|
git_vector_foreach(twos, i, two) {
|
||||||
git_commit_list_parse(walk, two);
|
if (git_commit_list_parse(walk, two) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
two->flags |= PARENT2;
|
two->flags |= PARENT2;
|
||||||
|
|
||||||
if (git_pqueue_insert(&list, two) < 0)
|
if (git_pqueue_insert(&list, two) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user