]> source.dussan.org Git - redmine.git/commitdiff
Ignore subversion root_url case when extracting relative url.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 9 Dec 2009 08:39:51 +0000 (08:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 9 Dec 2009 08:39:51 +0000 (08:39 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3138 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/subversion.rb

index 0f9b567460bed1973a87f5dadead7dc33d7870ca..f84e4c089204de7ad1dda30238bd17c2e6b49322 100644 (file)
@@ -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