diff options
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index 2f295d872..513d4a106 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -95,11 +95,13 @@ module Redmine end def tags - return @tags if @tags + return @tags if !@tags.nil? + @tags = [] cmd_args = %w|tag| git_cmd(cmd_args) do |io| @tags = io.readlines.sort!.map{|t| t.strip} end + @tags rescue ScmCommandAborted nil end |