1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

VCS::SVN#url was buggy and recent commits exposed it

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-12-15 06:02:58 +00:00
parent 825680a106
commit 4527b18a6b

View file

@ -137,7 +137,7 @@ class VCS
def url def url
unless defined?(@url) unless defined?(@url)
url = IO.pread(%W"svn info --xml #{@srcdir}")[/<url>(.*)<\/url>/, 1] url = IO.pread(%W"svn info --xml #{@srcdir}")[/<root>(.*)<\/root>/, 1]
@url = URI.parse(url+"/") if url @url = URI.parse(url+"/") if url
end end
@url @url