diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-01 18:36:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-03 10:49:28 +0900 |
commit | 3df764721a6a988116982a5a9af80486ad801e3d (patch) | |
tree | 7026a02d11de4cbbb401f098e79aa39fe6ab7607 /tool | |
parent | ca0f68260ee930100dc39f8c4647ce56663f17fe (diff) |
[sync_default_gems.rb] Use block form `IO.popen` to reap zombies
[ci skip]
Diffstat (limited to 'tool')
-rw-r--r-- | tool/sync_default_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 6692309f54..6072a82e0b 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -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 |