def METHOD_NAME(project):
    refs = [commit.id for commit in project.commits.list(all=True)]
    commit = project.repository_merge_base(refs)
    assert commit["id"] in refs
    with pytest.raises(gitlab.GitlabGetError, match="Provide at least 2 refs"):
        commit = project.repository_merge_base(refs[0])