aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/open.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/open.rb')
-rw-r--r--lib/bundler/cli/open.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/open.rb b/lib/bundler/cli/open.rb
index 9a21f6811c..552fe6f128 100644
--- a/lib/bundler/cli/open.rb
+++ b/lib/bundler/cli/open.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-require "bundler/cli/common"
+
require "shellwords"
module Bundler
@@ -17,7 +17,7 @@ module Bundler
path = spec.full_gem_path
Dir.chdir(path) do
command = Shellwords.split(editor) + [path]
- Bundler.with_clean_env do
+ Bundler.with_original_env do
system(*command)
end || Bundler.ui.info("Could not run '#{command.join(" ")}'")
end