Ignore subversion root_url case when extracting relative url.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3138 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0fe389b841
commit
1de2a0b7c7
|
@ -84,6 +84,6 @@ class Repository::Subversion < Repository
|
|||
# url = file:///var/svn/foo/bar
|
||||
# => returns /bar
|
||||
def relative_url
|
||||
@relative_url ||= url.gsub(Regexp.new("^#{Regexp.escape(root_url)}"), '')
|
||||
@relative_url ||= url.gsub(Regexp.new("^#{Regexp.escape(root_url)}", Regexp::IGNORECASE), '')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue