Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Revert "use gemfile over settings (not tested yet)"
Browse files Browse the repository at this point in the history
It turns out that we already use Gemfile auth over configured auth,
because the Gemfile URI includes the username and password. That means
that mirrors and configured auth will not be used for any URI with auth
in it.

This reverts commit 88969b5.
  • Loading branch information
indirect committed Jan 12, 2015
1 parent 88969b5 commit 0aa8345
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/bundler/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,10 @@ def resolve_remote_uri(uri)

def add_configured_credentials(uri)
auth = Bundler.settings[uri.to_s]

if auth && uri.user.nil?
if auth
uri = uri.dup
uri.user, uri.password = *auth.split(":", 2)
end

AnonymizableURI.new(uri)
end

Expand Down

0 comments on commit 0aa8345

Please sign in to comment.