ambiguous argument 'origin/master' GitHub and TeamCity
Completed
Hello,
we use Github with our TeamCity and we are getting an error message we cannot get rid of:
+ build/deploy.sh
[08:59:41]
[Step 2/2] fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
[08:59:41]
[Step 2/2] Use '--' to separate paths from revisions, like this:
[08:59:41]
[Step 2/2] 'git <command> [<revision>...] -- [<file>...]'
it looks like there is a similar problem on jenkins:
https://github.com/jenkins-x/jx/issues/5534
does it include teamcity? This problem appears on each branch except master but the build.sh script stays the same. I have run out of ideas on how to solve it. Would be happy to hear back from you,
Kind regards,
K.
Please sign in to leave a comment.
Hello,
At first glance, it looks like the issue might lie within deploy.sh itself. Are you using command-line build step to trigger deploy.sh script? Command-line runner executes the script with the help of OS itself, meaning that the output of this script and the errors are generated by the OS/shell itself. Please try troubleshooting the script itself.
Best regards,
Mikhail Efremov