Permalink
Browse files

it turns out we only care if they are the same

  • Loading branch information...
indirect committed Mar 3, 2012
1 parent a9e9b90 commit 980295282f1bce7843be28588f2f283dbe1fba42
Showing with 2 additions and 3 deletions.
  1. +1 −1 lib/bundler/definition.rb
  2. +1 −2 lib/bundler/source.rb
@@ -361,7 +361,7 @@ def converge_sources
@locked_sources.find { |s| s == source } || source
end
- changes = changes | !(@sources & @locked_sources).empty?
+ changes = changes | (@sources == @locked_sources)
@sources.each do |source|
# If the source is unlockable and the current command allows an unlock of
View
@@ -128,8 +128,7 @@ def add_remote(source)
end
def replace_remotes(source)
- diffs = source.remotes & @remotes
- return false if diffs.empty?
+ return false if source.remotes == @remotes
@remotes = []
source.remotes.each do |r|

0 comments on commit 9802952

Please sign in to comment.