Commit 3b17a383 authored by maeda's avatar maeda

Remove extra #dup (#26561).


git-svn-id: https://svn.redmine.org/redmine/trunk@17995 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 15dc17a5
......@@ -248,10 +248,9 @@ module Redmine
end
def self.branch_conf_path(path)
return unless path
return if path.nil?
m = path.match(%r{^(.*[/\\])\.bzr.*$})
bcp = m ? m[1] : path.dup
bcp.gsub!(%r{[\/\\]$}, "")
bcp = (m ? m[1] : path).gsub(%r{[\/\\]$}, "")
File.join(bcp, ".bzr", "branch", "branch.conf")
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment