diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 8c124d4f79..e0e0678af4 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -314,8 +314,7 @@ eom end log = find_svn_log("##@issue]") - if log - rev = log[/revision="(\d+)/, 1] + if log && /revision="(?\d+)/ =~ log str = log[/merge revision\(s\) ([^:]+)(?=:)/] str.insert(5, "d") str = "ruby_#{TARGET_VERSION.tr('.','_')} r#{rev} #{str}."