summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/install.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index dcd8d7cf7d..ed21485170 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -161,14 +161,11 @@ module Bundler
without |= Bundler.settings[:without].map(&:to_s)
without -= options[:with] if options[:with]
- options[:with] = with
- options[:without] = without
-
# need to nil them out first to get around validation for backwards compatibility
Bundler.settings.set_command_option :without, nil
Bundler.settings.set_command_option :with, nil
- Bundler.settings.set_command_option :without, options[:without] - options[:with]
- Bundler.settings.set_command_option :with, options[:with]
+ Bundler.settings.set_command_option :without, without - with
+ Bundler.settings.set_command_option :with, with
end
def normalize_settings