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
This commit is contained in:
Toshi MARUYAMA 2011-03-08 06:10:53 +00:00
parent 0e32fcf93e
commit 9294fb4699
1 changed files with 4 additions and 2 deletions

View File

@ -92,10 +92,12 @@ module Redmine
def tags def tags
return @tags if @tags return @tags if @tags
cmd = "#{self.class.sq_bin} --git-dir #{target('')} tag" cmd_args = %w|tag|
shellout(cmd) do |io| scm_cmd(*cmd_args) do |io|
@tags = io.readlines.sort!.map{|t| t.strip} @tags = io.readlines.sort!.map{|t| t.strip}
end end
rescue ScmCommandAborted
nil
end end
def default_branch def default_branch