Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2014-03-09 09:00:43 +0400
committerRobert Speicher <rspeicher@gmail.com>2014-03-09 09:01:06 +0400
commit74d2085cdfab5c929ca68f37375af6d3d3345bba (patch)
treeb57e446331e8e29ab14cadd216e98c1d5a7c316c /app/helpers
parenta37c67940092d6d5ca82a12be76d4264034ccc6d (diff)
Sort tag names using VersionSorter
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 523c2020747..bdaf6ba8abb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -94,11 +94,10 @@ module ApplicationHelper
options = [
["Branches", repository.branch_names],
- ["Tags", repository.tag_names]
+ ["Tags", VersionSorter.rsort(repository.tag_names)]
]
- # If reference is commit id -
- # we should add it to branch/tag selectbox
+ # If reference is commit id - we should add it to branch/tag selectbox
if(@ref && !options.flatten.include?(@ref) &&
@ref =~ /^[0-9a-zA-Z]{6,52}$/)
options << ["Commit", [@ref]]