summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-01-12 12:25:50 -0800
committerAndre Arko <andre@arko.net>2015-01-12 12:25:54 -0800
commit0aa8345b143e45d587124832f6949d7957eaa618 (patch)
tree8491f91f90b17627d4fd43aafc954db06e387dd3
parent88969b5210cbab4226cdcc4245762f8c3ba41f1a (diff)
downloadbundler-0aa8345b143e45d587124832f6949d7957eaa618.tar.gz
Revert "use gemfile over settings (not tested yet)"v1.7.12
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 88969b5210cbab4226cdcc4245762f8c3ba41f1a.
-rw-r--r--lib/bundler/fetcher.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index 7b92a436c2..cf451d0572 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -379,12 +379,10 @@ module Bundler
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