summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-18 05:24:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-18 05:24:14 +0000
commit6b6178fc3d1485f472e721639cd9e994798959f1 (patch)
treef3f256c263b3fbc17e6fe2b72af67c69761e7251 /tool/vcs.rb
parentfbbf3afc1165c351666828a237958d69433fde9c (diff)
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
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 90aaf6f..52c0860 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?