Skip to content
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

Error with non-existent command "remotes" #62

Closed
cdlm opened this issue Nov 5, 2010 · 2 comments
Closed

Error with non-existent command "remotes" #62

cdlm opened this issue Nov 5, 2010 · 2 comments

Comments

@cdlm
Copy link

cdlm commented Nov 5, 2010

Invoking git remotes gives me:

~/bin/hub:685:in `remotes': wrong number of arguments (1 for 0) (ArgumentError)

I had aliased remotes to remote --verbose, but I removed it and still get the error, rather than the "this is not a git command" message.

hub standalone 1.4.1.

@mislav
Copy link
Owner

mislav commented Nov 7, 2010

ensure that internal methods can't pretend to be git commands

Hub::Context methods were public, now they are private. Ensures that
Hub::Commands.respond_to? doesn't return true for any of its methods.

Closed by 35f72a5

@cdlm
Copy link
Author

cdlm commented Nov 7, 2010

Thanks! Too bad Hub::Commands is not a class, there were fun methods to call, up in the inheritance ;)

davidbalbert pushed a commit to davidbalbert/hub that referenced this issue May 9, 2011
Hub::Context methods were public, now they are private. Ensures that
`Hub::Commands.respond_to?` doesn't return true for any of its methods.

Closes mislav#62
This issue was closed.
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

No branches or pull requests

2 participants