- Go Version: 2.1.0(11953-d38ed30420cf)
- OS X 10.6.7
My pipeline config:
<pipeline name="test"> <materials> <git url="git://localhost/Users/hobodave/S4.git" /> </materials> <stage name="defaultStage"> <jobs> <job name="defaultJob"> <tasks> <rake /> </tasks> </job> </jobs> </stage></pipeline>The error:
ERROR: fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree. ERROR: Use '--' to separate paths from revisions
Comments
4 comments
Hi Dave,
Are you seeing this error on the server or agent? If you are facing this problem on the server, can you please send us the server logs?
The log file location for go-server and go-agent log files are /Library/Application Support/Go Server/go-server.log and /Applications/Go Agent.app/go-agent.log respectively.
Additionally can you please send us the git version the box has? If you have used portage(or have compiled the source yourself), can you please send us the patch-number as well?.
Regards,
Janmejay
By portage I meant MacPorts. Sorry for the confusion.
Regards,
Janmejay
git version 1.7.4.1
Please note that I changed my repository URL to see if it was somehow related. I have confirmed that I can manually clone from this url without issue. The agent log only contains these seemingly irrelevant lines:
Hi Dave,
From what it looks like, it seems git is not seeing a ref named origin/master. When git clones a remote repo, it calls the corresponding branches origin/<remotes-local-branch-name>(origin being the remote name). The only way you can end up without any origin/master is when you have no branch on repository git://localhost/Users/hobodave/S4.git named 'master'.
Can you please execute the following commands to find out what branches are actually available on the remote:
$ git clone git://localhost/Users/hobodave/S4.git foo
$ cd foo
$ git branch -r
If you have a branch named master, you should see origin/master in output of the last command.
If you do not have a branch named 'master' you'll need to specify name of your CI branch in the material declaration in cruise-config. For instance, if you want to use a branch named ci-branch, your material configuration should look like: <git url="git://localhost/Users/hobodave/S4.git" branch="ci-branch" />
Regards,
Janmejay
Please sign in to leave a comment.