# File lib/gitlab_git/repository.rb, line 61 def branches rugged.branches.map do |rugged_ref| begin Branch.new(self, rugged_ref.name, rugged_ref.target) rescue Rugged::ReferenceError # Omit invalid branch end end.compact.sort_by(&:name) end