1
0
Fork 0
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:
Nobuyoshi Nakada 2020-04-01 18:36:54 +09:00
parent ca0f68260e
commit 3df764721a
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

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