summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-27 09:53:42 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-27 09:53:42 +0300
commit2c8d3c33ff64ac6af5daf125a2f9ef917e55bcfc (patch)
treeee7eb18b8e59074bc56ea06fd30ae241beed4a2f
parentbeb324c1c6518f4ad20039b4122ef6d59ba430c2 (diff)
downloadgitlab-ce-2c8d3c33ff64ac6af5daf125a2f9ef917e55bcfc.tar.gz
Fixed ref switcher
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 185e7d84149..911b46c9a30 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -60,8 +60,8 @@ module ApplicationHelper
def grouped_options_refs(destination = :tree)
options = [
- ["Branch", @project.repo.heads.map(&:name) ],
- [ "Tag", @project.tags ]
+ ["Branch", @project.branch_names ],
+ [ "Tag", @project.tag_names ]
]
# If reference is commit id -