merge-base: die with an error message if not passed a commit ref