diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-18 05:24:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-18 05:24:14 +0000 |
commit | 6b6178fc3d1485f472e721639cd9e994798959f1 (patch) | |
tree | f3f256c263b3fbc17e6fe2b72af67c69761e7251 /tool/vcs.rb | |
parent | fbbf3afc1165c351666828a237958d69433fde9c (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.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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? |