Module: Gitlab::Git::RuggedImpl::Ref

Included in:
Gitlab::Git::Ref
Defined in:
lib/gitlab/git/rugged_impl/ref.rb

Class Method Summary collapse

Class Method Details

.dereference_object(object) ⇒ Object


12
13
14
15
16
# File 'lib/gitlab/git/rugged_impl/ref.rb', line 12

def self.dereference_object(object)
  object = object.target while object.is_a?(::Rugged::Tag::Annotation)

  object
end