From 6b6178fc3d1485f472e721639cd9e994798959f1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 18 Jan 2015 05:24:14 +0000 Subject: vcs.rb: workaround * tool/vcs.rb (VCS::SVN#export): workaround for the case wcroot-abspath is not present. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/vcs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/vcs.rb') diff --git a/tool/vcs.rb b/tool/vcs.rb index 90aaf6f061..52c0860177 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -195,9 +195,9 @@ class VCS end def export(revision, url, dir) - if @srcdir + if @srcdir and (rootdir = wcroot) srcdir = File.realpath(@srcdir) - rootdir = wcroot+"/" + rootdir << "/" if srcdir.start_with?(rootdir) subdir = srcdir[rootdir.size..-1] subdir = nil if subdir.empty? -- cgit v1.2.3