Allow getting the merge base of more than 2 commits.