diff options
author | Yehuda Katz <wycats@gmail.com> | 2012-03-02 15:17:52 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2012-03-02 15:22:08 -0800 |
commit | ff7b89d7ad84e6a2450ee2b444aecf0a42534887 (patch) | |
tree | 2dbc09e71e19584a965b53c69d1d6e8f7760943e /lib/bundler/source.rb | |
parent | 859d3ad92e7ae4aa517ea0f7f4d09e7f4b9cab86 (diff) | |
download | bundler-ff7b89d7ad84e6a2450ee2b444aecf0a42534887.tar.gz |
Cherry pick perf fix from master
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r-- | lib/bundler/source.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 126e7fc4..58044089 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 |