Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tags_finder.rb « finders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0ccbbdc1b87243f194063cb316c6619b49e101c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class TagsFinder < GitRefsFinder
  def initialize(repository, params)
    super(repository, params)
  end

  def execute
    tags = repository.tags_sorted_by(sort)

    [by_search(tags), nil]
  rescue Gitlab::Git::CommandError => e
    [[], e]
  end
end