summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-04-01 10:56:13 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-04-28 19:08:49 +0900
commitf4009566afed45db82cf1fe73d7a16192a89b810 (patch)
tree79e8960082b684f4ec3da3681143ac186f5c25fe /lib/rubygems
parent6dc314ac6df69e29ba58dfd61dde90e85a2b47c9 (diff)
downloadruby-f4009566afed45db82cf1fe73d7a16192a89b810.tar.gz
[rubygems/rubygems] Add missing `open3` requires
https://github.com/rubygems/rubygems/commit/06ad654120
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/source/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb
index cda5aa8073..8d5dc1f69d 100644
--- a/lib/rubygems/source/git.rb
+++ b/lib/rubygems/source/git.rb
@@ -102,6 +102,7 @@ class Gem::Source::Git < Gem::Source
success = system @git, 'reset', '--quiet', '--hard', rev_parse
if @need_submodules
+ require "open3"
_, status = Open3.capture2e(@git, 'submodule', 'update', '--quiet', '--init', '--recursive')
success &&= status.success?