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:
parent
de5378233b
commit
2c31e6dec4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue