]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: use regexp %r{} instead of // in adapter branch_conf_path().
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 16:13:34 +0000 (16:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 May 2011 16:13:34 +0000 (16:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5900 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb

index ca980052c00e31e35c2d3d3e7a26cc1bb4dde42c..231b4748e5d6ba1637b239454a3707aae7d4e2f7 100644 (file)
@@ -229,7 +229,7 @@ module Redmine
           else
             bcp = path
           end
-          bcp.gsub!(/[\/\\]$/, "")
+          bcp.gsub!(%r{[\/\\]$}, "")
           if bcp
             bcp = File.join(bcp, ".bzr", "branch", "branch.conf")
           end