ruby-changes:56117
From: nagachika <ko1@a...>
Date: Sun, 16 Jun 2019 11:46:34 +0900 (JST)
Subject: [ruby-changes:56117] nagachika: ee7999bb84 (trunk): tool/redmine-backporter.rb: Add parens to fix condition for svn revision search.
https://git.ruby-lang.org/ruby.git/commit/?id=ee7999bb84 From ee7999bb8453201f895e6154b9169c4e5b5b9ef6 Mon Sep 17 00:00:00 2001 From: nagachika <nagachika@r...> Date: Sun, 16 Jun 2019 11:39:12 +0900 Subject: tool/redmine-backporter.rb: Add parens to fix condition for svn revision search. diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index a7bce96..2ce181b 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -437,7 +437,7 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L437 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/