summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/definition.rb2
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)