# File lib/gitlab_git/repository.rb, line 114 def tags rugged.references.each("refs/tags/*").map do |ref| message = nil if ref.target.is_a?(Rugged::Tag::Annotation) tag_message = ref.target.message if tag_message.respond_to?(:chomp) message = tag_message.chomp end end Tag.new(self, ref.name, ref.target, message) end.sort_by(&:name) end