-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ambiguous argument 'master...origin/master'" when running on a newly cloned project #40
Comments
You mean that there is no |
Yes, no master-branch on the build-machine. We have set the develop-branch as default in gitlab, so that branch is checked out by default. I added a pre-build-step in jenkins:
Then it works. I'm evaluating switching from jgitflow to this plugin. We have other jobs using jgitflow and didn't have to add this extra step. I guess that in most "normal" use-cases you will always have checked out master and develop branch locally so this doesn't happen. But as long as you clone a remote repository that has develop-branch as default and run gitflow:release* (without manually checking out master before) this should happen. |
@jn73 |
Thanks! I'll try it out asap 😀 |
We have a jenkins job that runs the gitflow:release command. The job will clear the workspace and make a fresh clone for each build/release.
The gitflow:release plugin will fail with this errror:
If I do a 'git checkout -b master origin/master' the ref to master is added to heads and the plugin is able to make the release.
The text was updated successfully, but these errors were encountered: