Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
hub am errors "wrong number of arguments" #1013
I understand. You still have the old version, though. Installing from Homebrew would give you the latest release. Or you can build from master again, but you will need Go compiler. You can also download the latest precompiled binary for OS X.
Let me know if that worked
I came across this same error:
=> hub create /usr/local/bin/hub:74:in `initialize': wrong number of arguments (9 for 1) (ArgumentError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1030:in `new' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1030:in `proxy_uri' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1017:in `proxy?' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:868:in `connect' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in `start' from /usr/local/bin/hub:451:in `perform_request' from /usr/local/bin/hub:566:in `perform_request' from /usr/local/bin/hub:411:in `get' from /usr/local/bin/hub:291:in `repo_info' from /usr/local/bin/hub:296:in `repo_exists?' from /usr/local/bin/hub:2017:in `create' from /usr/local/bin/hub:1560:in `run' from /usr/local/bin/hub:2480:in `initialize' from /usr/local/bin/hub:2484:in `new' from /usr/local/bin/hub:2484:in `execute' from /usr/local/bin/hub:2535:in `<main>'
And I thought I had the latest
=> brew upgrade hub Error: hub 2.2.3 already installed
But my symlink was pointing to the old version!
=> ls -al $(which hub) lrwxr-xr-x 1 benmathes admin 28 Mar 29 09:40 /usr/local/bin/hub -> ../Cellar/hub/1.12.0/bin/hub
Which was fixed by:
Now the symlink is correct (note the 2.2.3 in the symlink target):
=> ls -al $(which hub) lrwxr-xr-x 1 benmathes admin 27 Mar 29 10:00 /usr/local/bin/hub -> ../Cellar/hub/2.2.3/bin/hub