lib/gitlab_git/repository.rb in gitlab_git-5.8.0 vs lib/gitlab_git/repository.rb in gitlab_git-5.9.0

- old
+ new

@@ -54,19 +54,18 @@ branches.map(&:name) end # Returns an Array of Branches def branches - rugged.refs.select do |ref| - ref.name =~ /\Arefs\/heads/ - end.map do |rugged_ref| + rugged.branches.map do |rugged_ref| Branch.new(rugged_ref.name, rugged_ref.target) end.sort_by(&:name) end # Returns an Array of tag names def tag_names - tags.map(&:name) + # rugged.tags returns array of names + rugged.tags.to_a end # Returns an Array of Tags def tags rugged.refs.select do |ref|