lib/gitlab_git/repository.rb in gitlab_git-1.2.1 vs lib/gitlab_git/repository.rb in gitlab_git-1.3.0
- old
+ new
@@ -109,20 +109,20 @@
repo.branches.sort_by(&:name)
end
# Returns an Array of tag names
def tag_names
- repo.tags.collect(&:name).sort.reverse
+ tags.map(&:name)
end
# Returns an Array of Tags
def tags
repo.tags.sort_by(&:name).reverse
end
# Returns an Array of branch and tag names
def ref_names
- [branch_names + tag_names].flatten
+ branch_names + tag_names
end
def heads
@heads ||= repo.heads.sort_by(&:name)
end