Skip to content

Commit

Permalink
it turns out we only care if they are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Mar 3, 2012
1 parent a9e9b90 commit 9802952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/definition.rb
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions lib/bundler/source.rb
Expand Up @@ -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|
Expand Down

0 comments on commit 9802952

Please sign in to comment.