diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 71322d6d41..536099a20a 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -740,9 +740,9 @@ module Bundler end specs.each do |s| - # Replace the locked dependency's source with the equivalent source from the Gemfile dep = @dependencies.find {|d| s.satisfies?(d) } + # Replace the locked dependency's source with the equivalent source from the Gemfile s.source = (dep && dep.source) || sources.get_with_fallback(s.source) next if @unlock[:sources].include?(s.source.name) |