merge-base: use the new lookup_commit_reference() helper function