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

tool/redmine-backporter.rb: Add parens to fix condition for svn revision search.

This commit is contained in:
nagachika 2019-06-16 11:39:12 +09:00
parent 5d79054906
commit ee7999bb84

View file

@ -437,7 +437,7 @@ eom
end
if system("svn info #{RUBY_REPO_PATH&.shellescape}", %i(out err) => IO::NULL) # SVN
if log = find_svn_log("##@issue]") && /revision="(?<rev>\d+)/ =~ log
if (log = find_svn_log("##@issue]")) && (/revision="(?<rev>\d+)/ =~ log)
rev = "r#{rev}"
end
else # Git