@@ -101,9 +101,9 module Redmine | |||
|
101 | 101 | end |
|
102 | 102 | |
|
103 | 103 | def target(path) |
|
104 |
path ||= |
|
|
105 |
base = path.match(/^\//) ? root_url : url |
|
|
106 |
|
|
|
104 | path ||= '' | |
|
105 | base = path.match(/^\//) ? root_url : url | |
|
106 | shell_quote("#{base}/#{path}".gsub(/[?<>\*]/, '')) | |
|
107 | 107 | end |
|
108 | 108 | |
|
109 | 109 | def logger |
@@ -100,7 +100,7 module Redmine | |||
|
100 | 100 | cmd = "#{SVN_BIN} log --xml -r #{identifier_from}:#{identifier_to}" |
|
101 | 101 | cmd << credentials_string |
|
102 | 102 | cmd << " --verbose " if options[:with_paths] |
|
103 | cmd << target(path) | |
|
103 | cmd << ' ' + target(path) | |
|
104 | 104 | shellout(cmd) do |io| |
|
105 | 105 | begin |
|
106 | 106 | doc = REXML::Document.new(io) |
@@ -139,7 +139,7 module Redmine | |||
|
139 | 139 | cmd = "#{SVN_BIN} diff -r " |
|
140 | 140 | cmd << "#{identifier_to}:" |
|
141 | 141 | cmd << "#{identifier_from}" |
|
142 | cmd << "#{target(path)}@#{identifier_from}" | |
|
142 | cmd << " #{target(path)}@#{identifier_from}" | |
|
143 | 143 | cmd << credentials_string |
|
144 | 144 | diff = [] |
|
145 | 145 | shellout(cmd) do |io| |
General Comments 0
You need to be logged in to leave comments.
Login now