From 86f05884a50eb1fc7ac932ec4c7965957ba17271 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 6 Dec 2017 11:36:42 +0000 Subject: [PATCH] vcs.rb: fix r61054 * tool/vcs.rb (VCS::SVN.get_revisions): cmd_readd_at expects the whole arguments for IO.popen as the second argument, that is an array of command and mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/vcs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/vcs.rb b/tool/vcs.rb index d4865f32e2..437d647041 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -238,10 +238,10 @@ class VCS path = File.join(srcdir, path) end if srcdir - info_xml = cmd_read_at(nil, %W"#{COMMAND} info --xml #{srcdir}") + info_xml = cmd_read_at(nil, [%W"#{COMMAND} info --xml #{srcdir}"]) info_xml = nil unless info_xml[/(.*)<\/url>/, 1] == path.to_s end - info_xml ||= cmd_read_at(nil, %W"#{COMMAND} info --xml #{path}") + info_xml ||= cmd_read_at(nil, [%W"#{COMMAND} info --xml #{path}"]) _, last, _, changed, _ = info_xml.split(/revision="(\d+)"/) modified = info_xml[/([^<>]*)/, 1] branch = info_xml[%r'\^/(?:branches/|tags/)?([^<>]+)', 1]