mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Replace Gem::Util.silent_system
with better tools
This commit is contained in:
parent
c61031d6b6
commit
afce7eb39e
Notes:
git
2020-06-15 21:21:03 +09:00
2 changed files with 8 additions and 5 deletions
|
@ -103,9 +103,11 @@ class Gem::Source::Git < Gem::Source
|
|||
|
||||
success = system @git, 'reset', '--quiet', '--hard', rev_parse
|
||||
|
||||
success &&=
|
||||
Gem::Util.silent_system @git, 'submodule', 'update',
|
||||
'--quiet', '--init', '--recursive' if @need_submodules
|
||||
if @need_submodules
|
||||
_, status = Open3.capture2e(@git, 'submodule', 'update', '--quiet', '--init', '--recursive')
|
||||
|
||||
success &&= status.success?
|
||||
end
|
||||
|
||||
success
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue