On gitlab CI job that runs on merge requests, I do:
git rev-list master..branch_name
I expect to have the list of SHAs in branch_name and` not in master. But I get the error:
fatal: ambiguous argument 'master..branch_name': unknown revision or path not in the working tree.
The master and branch_name are correct. The command is working when run against my local repo.
Any idea why? and how to work around that?