summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/sync_default_gems.rb2
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