summaryrefslogtreecommitdiff
path: root/lib/bundler/source.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2012-03-02 15:17:52 -0800
committerYehuda Katz <wycats@gmail.com>2012-03-02 15:22:08 -0800
commitff7b89d7ad84e6a2450ee2b444aecf0a42534887 (patch)
tree2dbc09e71e19584a965b53c69d1d6e8f7760943e /lib/bundler/source.rb
parent859d3ad92e7ae4aa517ea0f7f4d09e7f4b9cab86 (diff)
downloadbundler-ff7b89d7ad84e6a2450ee2b444aecf0a42534887.tar.gz
Cherry pick perf fix from master
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r--lib/bundler/source.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 126e7fc4b7..58044089f6 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -127,11 +127,16 @@ module Bundler
@remotes << normalize_uri(source)
end
- def merge_remotes(source)
+ def replace_remotes(source)
+ diffs = source.remotes & @remotes
+ return false if diffs.empty?
+
@remotes = []
source.remotes.each do |r|
add_remote r.to_s
end
+
+ true
end
private