summaryrefslogtreecommitdiff
path: root/lib/bundler/cli.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r--lib/bundler/cli.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 8475b198fd..10fea9ca72 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -355,6 +355,7 @@ module Bundler
"forces clean even if --path is not set"
def clean
require 'bundler/cli/clean'
+ auto_install if Bundler.settings[:path] || options[:force]
Clean.new(options.dup).run
end