aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/gem.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-08-31 14:44:58 -0500
committergit <svn-admin@ruby-lang.org>2023-09-21 18:30:37 +0000
commit812c8196b69b15713e7bdc9843329d9c490497a8 (patch)
tree49b7f1b3508d7b8924e78380a5793de9b8079530 /lib/bundler/cli/gem.rb
parente9ed0b3068f54f32d5116ff9d73833d96229fde9 (diff)
downloadruby-812c8196b69b15713e7bdc9843329d9c490497a8.tar.gz
[rubygems/rubygems] Remove usage of Dir.chdir that just execute a subprocess
Preferring instead to spawn the subprocess in the correct directory https://github.com/rubygems/rubygems/commit/ad5abd6a45
Diffstat (limited to 'lib/bundler/cli/gem.rb')
-rw-r--r--lib/bundler/cli/gem.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 1645283a2c..4ec61cec5d 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -233,9 +233,7 @@ module Bundler
end
if use_git
- Dir.chdir(target) do
- `git add .`
- end
+ IO.popen(%w[git add .], { :chdir => target }, &:read)
end
# Open gemspec in editor