Commit 844d226c by Vicent Marti

Merge pull request #2532 from arthurschreiber/arthur/fix-merge-base-commit-check

merge base: Correctly raise an error if a non-commit object is passed.
parents 5af52c62 017c0eac
......@@ -228,8 +228,11 @@ int git_merge__bases_many(git_commit_list **out, git_revwalk *walk, git_commit_l
return -1;
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;
if (git_pqueue_insert(&list, two) < 0)
return -1;
}
......
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