aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/source/git.rb2
-rw-r--r--test/rubygems/test_gem_source_git.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb
index 8453aa5fd7..fdce03c59a 100644
--- a/lib/rubygems/source/git.rb
+++ b/lib/rubygems/source/git.rb
@@ -90,7 +90,7 @@ class Gem::Source::Git < Gem::Source
success &&=
system @git, 'submodule', 'update',
- '--quiet', '--init', '--recursive' if @need_submodules
+ '--quiet', '--init', '--recursive', out: IO::NULL if @need_submodules
success
end
diff --git a/test/rubygems/test_gem_source_git.rb b/test/rubygems/test_gem_source_git.rb
index 78c415a9d3..f1c5eb9b71 100644
--- a/test/rubygems/test_gem_source_git.rb
+++ b/test/rubygems/test_gem_source_git.rb
@@ -25,7 +25,7 @@ class TestGemSourceGit < Gem::TestCase
git_gem 'b'
Dir.chdir 'git/a' do
- system @git, 'submodule', '--quiet', 'add', File.expand_path('../b'), 'b'
+ system @git, 'submodule', '--quiet', 'add', File.expand_path('../b'), 'b', out: IO::NULL
system @git, 'commit', '--quiet', '-m', 'add submodule b'
end