Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ruby 1.8 fix

Closes #122
  • Loading branch information...
commit db1cacbb110a69061e2b7a455f1931c3c7c96530 1 parent 6325f0f
@mislav mislav authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/hub/commands.rb
View
2  lib/hub/commands.rb
@@ -929,7 +929,7 @@ def expand_alias(cmd)
end
def http_request(url, type = :Get)
- url = URI(url)
+ url = URI(url) unless url.respond_to? :host
user, token = github_user(type != :Get, url.host), github_token(type != :Get, url.host)
req = Net::HTTP.const_get(type).new(url.request_uri)
Please sign in to comment.
Something went wrong with that request. Please try again.