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

tool/merger.rb: Guard match failure properly

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-04-21 12:03:39 +00:00
parent de5378233b
commit 2c31e6dec4

View file

@ -259,7 +259,7 @@ else
end
patch = resp.body
message = "\n\n#{(patch.match(/^Subject: (.*)\n\ndiff --git/m)[1] || "Message not found for revision: #{git_rev}\n")}"
message = "\n\n#{(patch.match(/^Subject: (.*)\n\ndiff --git/m)&.[](1) || "Message not found for revision: #{git_rev}\n")}"
puts "+ git apply"
IO.popen(['git', 'apply'], 'w') { |f| f.write(patch) }
else