diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-08 06:10:53 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-03-08 06:10:53 +0000 |
commit | 9294fb46999604281725c41ef90e4607fd3fa480 (patch) | |
tree | 226c2984b4724c056dcc03eda3b4bf9824512b8c /lib/redmine/scm/adapters/git_adapter.rb | |
parent | 0e32fcf93e13fab882010d436144bb34ca9466ab (diff) | |
download | redmine-9294fb46999604281725c41ef90e4607fd3fa480.tar.gz redmine-9294fb46999604281725c41ef90e4607fd3fa480.zip |
scm: git: use scm_cmd() in adapter tags().
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5046 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/scm/adapters/git_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index 175cc6c37..018ac459f 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -92,10 +92,12 @@ module Redmine def tags return @tags if @tags - cmd = "#{self.class.sq_bin} --git-dir #{target('')} tag" - shellout(cmd) do |io| + cmd_args = %w|tag| + scm_cmd(*cmd_args) do |io| @tags = io.readlines.sort!.map{|t| t.strip} end + rescue ScmCommandAborted + nil end def default_branch |