We have about 100 running azure-devop pipelines with all the same azure-pipeline.yaml. In all pipelines, we are calling get checkout $(Build.SourceBranchName). In one of the repositories we get the error message:
error: pathspec 'master' did not match any file(s) known to git
On our local machines checking out the master branch does not make any problems. When pushing to any other branch, it is not working as well. E.g. when using dev branch:
error: pathspec 'dev' did not match any file(s) known to git
I can't see any differences. What I tried:
- Create everything from scratch
- Check whether HEAD ref is equal to master (origin/master)
- Creating new branches and push them (e.g. origin/dev) is not working as well
- Switching branches does not help
Any other ideas?