summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/cli/common.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/cli/common.rb b/lib/bundler/cli/common.rb
index 2edae86d05..bfd653e821 100644
--- a/lib/bundler/cli/common.rb
+++ b/lib/bundler/cli/common.rb
@@ -100,7 +100,10 @@ module Bundler
end
def self.set_path(path, if_given = false)
- return if if_given && path.nil?
+ if path.nil?
+ Bundler.settings.set_command_option :path, nil unless if_given
+ return
+ end
path = Pathname.new(path)
if path.relative? && Bundler.feature_flag.path_relative_to_cwd?