summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 1f4f5ff0e0..72201a598d 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -161,13 +161,16 @@ class VCS
info = get_info
@wcroot = info[/<wcroot-abspath>(.*)<\/wcroot-abspath>/, 1]
unless @wcroot
- parent = File.realpath(@srcdir)
begin
- parent = File.dirname(wkdir = parent)
- if File.directory?(wkdir + "/.svn")
- break @wcroot = wkdir
- end
- end until parent == wkdir
+ parent = File.realpath(@srcdir)
+ begin
+ parent = File.dirname(wkdir = parent)
+ if File.directory?(wkdir + "/.svn")
+ break @wcroot = wkdir
+ end
+ end until parent == wkdir
+ rescue TypeError
+ end
end
end
@wcroot