diff options
author | David RodrÃguez <[email protected]> | 2020-03-24 12:54:22 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-06-15 21:20:37 +0900 |
commit | afce7eb39ec58f9ec65b3cf53059a4bc3bd58cbd () | |
tree | ea9ce6a73ae5bf5f66c53cce54286b0974259c80 | |
parent | c61031d6b66674cf57211ff52677c223fe1d17ac (diff) |
Replace `Gem::Util.silent_system` with better tools
Notes: Merged: https://.com/ruby/ruby/pull/3229
-rw-r--r-- | lib/rubygems/source/git.rb | 8 | ||||
-rw-r--r-- | test/rubygems/test_gem_source_git.rb | 5 |
2 files changed, 8 insertions, 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 success end @@ -69,8 +69,9 @@ class TestGemSourceGit < Gem::TestCase git_gem 'b' Dir.chdir 'git/a' do - Gem::Util.silent_system @git, 'submodule', '--quiet', - 'add', File.expand_path('../b'), 'b' system @git, 'commit', '--quiet', '-m', 'add submodule b' end |