Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix fetching proxy user/password

  • Loading branch information...
commit 99c86b3eb42208312e7eab32c22bb1d40417967d 1 parent 4563164
@mislav mislav authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/hub/commands.rb
View
6 lib/hub/commands.rb
@@ -960,7 +960,11 @@ def setup_http(url)
http_args = [url.host, port]
if proxy = proxy_url(use_ssl)
- http_args.concat proxy.select(:host, :port, :user, :password)
+ http_args.concat proxy.select(:host, :port)
+ if proxy.userinfo
+ require 'cgi'
+ http_args.concat proxy.userinfo.split(':', 2).map {|a| CGI.unescape a }
+ end
end
http = Net::HTTP.new(*http_args)
Please sign in to comment.
Something went wrong with that request. Please try again.