Project

General

Profile

Actions

Patch #18923

closed

Git: fix empty repository.tags

Added by Nicolas Rodriguez over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

in lib/redmine/scm/adapter/git_adapter.rb the tags method should return @tags as last statement :

def tags
  return @tags if @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

otherwise get an empty string.

Actions

Also available in: Atom PDF