mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[sync_default_gems.rb] Use block form IO.popen
to reap zombies
[ci skip]
This commit is contained in:
parent
ca0f68260e
commit
3df764721a
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ def sync_default_gems_with_commits(gem, range)
|
|||
puts "Pick #{sha} from #{$repositories[gem.to_sym]}."
|
||||
|
||||
skipped = false
|
||||
result = IO.popen(%W"git cherry-pick #{sha}").read
|
||||
result = IO.popen(%W"git cherry-pick #{sha}", &:read)
|
||||
if result =~ /nothing\ to\ commit/
|
||||
`git reset`
|
||||
skipped = true
|
||||
|
|
Loading…
Add table
Reference in a new issue