1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rubygems/source/git.rb: discard output

* lib/rubygems/source/git.rb (Gem::Source::Git#checkout): discard git
  output.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-11-19 14:00:29 +00:00
parent ef37d178bb
commit 4528d7e0cf
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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