If you use Git, the client usually detects automatically some basic information, including the current branch, but when this is not possible you can simply specify on the command line the parameter
--project-branch=name-of-your-branch to enforce the branch name. A common scenario is when you are running within a CI system, which may not checkout the whole branch but just detach the head at a certain commit: please refer to the documentation of your CI system. You can also provide the project url (
--project-url) and the current commit (
--project-commit) if you want, but usually this information are automatically detected by the client.