summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/pristine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/pristine.rb')
-rw-r--r--lib/bundler/cli/pristine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli/pristine.rb b/lib/bundler/cli/pristine.rb
index ccf970eae0..cfd90da34b 100644
--- a/lib/bundler/cli/pristine.rb
+++ b/lib/bundler/cli/pristine.rb
@@ -8,6 +8,8 @@ module Bundler
end
def run
+ CLI::Common.ensure_all_gems_in_lockfile!(@gems)
+
Bundler.load.specs.each do |spec|
next if spec.name == "bundler" # Source::Rubygems doesn't install bundler
next if !@gems.empty? && !@gems.include?(spec.name)