Commit 47475acd authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed Bazaar shared repository browsing (#2101, patch #1685 by Dmitry Shaposhnik).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1994 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 9ae6e60c
......@@ -50,7 +50,8 @@ module Redmine
path ||= ''
entries = Entries.new
cmd = "#{BZR_BIN} ls -v --show-ids"
cmd << " -r#{identifier.to_i}" if identifier && identifier.to_i > 0
identifier = -1 unless identifier && identifier.to_i > 0
cmd << " -r#{identifier.to_i}"
cmd << " #{target(path)}"
shellout(cmd) do |io|
prefix = "#{url}/#{path}".gsub('\\', '/')
......
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