summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-06 11:36:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-06 11:36:42 +0000
commit86f05884a50eb1fc7ac932ec4c7965957ba17271 (patch)
treede342652cb746f539fa83a892e787e263da4ff92 /tool
parent951ef1d413f53d84273dd0bad230ee573fad51a4 (diff)
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
Diffstat (limited to 'tool')
-rw-r--r--tool/vcs.rb4
1 files 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>(.*)<\/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[/<date>([^<>]*)/, 1]
branch = info_xml[%r'<relative-url>\^/(?:branches/|tags/)?([^<>]+)', 1]