defunkt / github-gem

`github` command line helper for simplifying your GitHub experience.
http://github.com
MIT License
1.12k stars 188 forks source link

github network list fails with "redirection forbidden" on private repo #4

Closed kocolosk closed 13 years ago

kocolosk commented 15 years ago

Traceback looks like

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:174:in open_loop': redirection forbidden: http://github.com/user/repo/network/members.json -> https://github.com/user/repo/network/members.json (RuntimeError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:132:inopen_uri' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:518:in open' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:30:inopen' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/lib/commands/helpers.rb:340:in get_network_members' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/lib/commands/network.rb:23:incommand' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github/command.rb:25:in send' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github/command.rb:25:incall' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github.rb:74:in invoke' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/bin/../lib/github.rb:68:inactivate' from /Library/Ruby/Gems/1.8/gems/defunkt-github-0.3.4/bin/github:8 from /usr/bin/github:19:in `load' from /usr/bin/github:19

I didn't actually have an "origin" branch in this repo at first, so I added one that looks like

git remote show origin

fritzek commented 15 years ago

same problem with github-gem 0.4.0

jfturcot commented 15 years ago

I am also having the exact same problem with 0.4.0

chuckd commented 15 years ago

same problem here. Tried modifying the URLs used to go straight to the https links, but then other things break...

snowblink commented 15 years ago

Does this work? http://github.com/snowblink/github-gem/commit/3726b5e0f1f1129e41550f753e1d2207a3f5063c

chuckd commented 15 years ago

Yep this newer fix works. Much appreciated.

It's also a little nicer with a -s to curl to to remove the progress display.

fritzek commented 15 years ago

works for me too. thx @snowblink thx, @chuckd, for the -s

drnic commented 13 years ago

Applied.