Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Push to private git repo #10

Closed
meenarc opened this Issue · 6 comments

2 participants

@meenarc

Is there an override option that lets me specify a private git repo url to push this to?

@miketheman
Owner

@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.

@meenarc

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.

@miketheman
Owner

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  git@github.com:miketheman/knife-community.git (fetch)
origin  git@github.com: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.

@miketheman
Owner

Hi @meenarc,

Were you able to resolve the issue? I wanted to follow up and see if everything was working out.

@miketheman miketheman was assigned
@meenarc

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

@meenarc meenarc closed this
@miketheman
Owner

Glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.