merge base: Correctly raise an error if a non-commit object is passed.
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.