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

ref.rb « rugged_impl « git « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b553e82dc4719bd507df9ddbb200de06c5bd2753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

# NOTE: This code is legacy. Do not add/modify code here unless you have
# discussed with the Gitaly team.  See
# https://docs.gitlab.com/ee/development/gitaly.html#legacy-rugged-code
# for more details.

module Gitlab
  module Git
    module RuggedImpl
      module Ref
        def self.dereference_object(object)
          object = object.target while object.is_a?(::Rugged::Tag::Annotation)

          object
        end
      end
    end
  end
end