merge-base: Do not read parents from the root

This commit is contained in:
Vicent Marti 2015-10-30 11:50:43 +01:00
parent 136a71f4ee
commit 4cacf5b594

View File

@ -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;
}
}