mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
fbbf3afc11
commit
6b6178fc3d
1 changed files with 2 additions and 2 deletions
|
@ -195,9 +195,9 @@ class VCS
|
||||||
end
|
end
|
||||||
|
|
||||||
def export(revision, url, dir)
|
def export(revision, url, dir)
|
||||||
if @srcdir
|
if @srcdir and (rootdir = wcroot)
|
||||||
srcdir = File.realpath(@srcdir)
|
srcdir = File.realpath(@srcdir)
|
||||||
rootdir = wcroot+"/"
|
rootdir << "/"
|
||||||
if srcdir.start_with?(rootdir)
|
if srcdir.start_with?(rootdir)
|
||||||
subdir = srcdir[rootdir.size..-1]
|
subdir = srcdir[rootdir.size..-1]
|
||||||
subdir = nil if subdir.empty?
|
subdir = nil if subdir.empty?
|
||||||
|
|
Loading…
Add table
Reference in a new issue