Is there an override option that lets me specify a private git repo url to push this to?
@meenarc I don't think I understand - the plugin will push to whichever git repo is configured to use, and release the completed cookbook to the community site.
You can change which git remote is used with the --remote flag - is that what you're looking for?
You may also wish to run git remote -v locally in your cookbook directory to see where your git repo is currently pointing to.
git remote -v
Maybe am doing something wrong .
I tried the --remote flag like this.I listed the contents of git remote -v. Ensure I had push permissions and I am on master branch
So I do a knife community release --remote https://myprivate-repo-ip:8443/git/dev-repo.git --no-site-share
And I get ERROR: The remote/branch specified does not seem to exist.
I think you may be passing the wrong argument to the --remote flag.
Here's what you may see from a git remote -v run:
$ git remote -v
origin email@example.com:miketheman/knife-community.git (fetch)
origin firstname.lastname@example.org:miketheman/knife-community.git (push)
In this case, I can see that the remote name is origin, and if I wanted to pass this to knife-community, I would use --remote origin as the parameter.
Does your git remote -v command have the "https://myprivate-repo-ip:8443/git/dev-repo.git" in it? if so, what is the short name? Pass that to --remote.
Were you able to resolve the issue? I wanted to follow up and see if everything was working out.
Sorry about the delayed reply. Our internal gitblit was upgraded and couldn't try things for a bit and I also ran into ruby upgrade issues
It worked smoothly after the rets of the stuff got resolved
Glad to hear it!