Skip to content

Conversation

chadrosen
Copy link
Contributor

No description provided.

@petems
Copy link

petems commented Apr 15, 2013

Can we get this one merged? It fixes the git remote remove issue which I'm getting too 👍

@robertodecurnex?

@ghost ghost assigned schacon and robertodecurnex Apr 15, 2013
@robertodecurnex
Copy link
Contributor

Yea, this is definitely wrong. There's no such -- support.

robertodecurnex added a commit that referenced this pull request Apr 15, 2013
@robertodecurnex
Copy link
Contributor

@petems, @chadrosen

Can you give me some usage examples?

I'm adding some tests over this.

@robertodecurnex
Copy link
Contributor

I'm adding Git::Base#remove_remote so it will be accessible from any repo instance.

@petems
Copy link

petems commented Apr 15, 2013

Cool beans.

This is how it should work I think:

@repo.add_remote('template', 'https://github.com/boxen/puppet-template.git')
@repo.remote('template').fetch
@repo.checkout('master')
@repo.remote('template').remove

But it currently errors out like this:

rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/git-1.2.5/lib/git/lib.rb:700:in `command': git remote "rm" "--" "template"  2>&1:usage: git remote remove <name> (Git::GitExecuteError)

If you need help with Repo collabs to help clear out the PR's I'm happy to help btw 😸

@chadrosen
Copy link
Contributor Author

+1 @petems code. Happy to help if you need me.

@robertodecurnex
Copy link
Contributor

Ty both!

Some tests have been added on 34f935e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants