summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/redmine/scm/adapters/bazaar_adapter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb
index 2fc78cf0f..2710899d7 100644
--- a/lib/redmine/scm/adapters/bazaar_adapter.rb
+++ b/lib/redmine/scm/adapters/bazaar_adapter.rb
@@ -59,9 +59,10 @@ module Redmine
# Get info about the repository
def info
- cmd = "#{self.class.sq_bin} revno #{target('')}"
+ cmd_args = %w|revno|
+ cmd_args << bzr_target('')
info = nil
- shellout(cmd) do |io|
+ scm_cmd(*cmd_args) do |io|
if io.read =~ %r{^(\d+)\r?$}
info = Info.new({:root_url => url,
:lastrev => Revision.new({
@@ -70,9 +71,8 @@ module Redmine
})
end
end
- return nil if $? && $?.exitstatus != 0
info
- rescue CommandFailed
+ rescue ScmCommandAborted
return nil
end