summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-11-03 12:16:15 +0000
committerJacob Schatz <jschatz1@gmail.com>2016-11-21 21:01:45 -0500
commitf9750b4912c6f0e4c7b0b7d213f95223d5d1a593 (patch)
tree9b75f9b48feecaf4771ddbf719d0ba6d63f15a29 /app/controllers/projects_controller.rb
parentba2089e01711eb3f97770235b86ae9e59862ee8b (diff)
downloadgitlab-ce-f9750b4912c6f0e4c7b0b7d213f95223d5d1a593.tar.gz
Changed how the data is returned - we only care about the branch/tag name
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 6affadfa0a6..d7bc31b0718 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -267,14 +267,15 @@ class ProjectsController < Projects::ApplicationController
end
def refs
- branches = BranchesFinder.new(@repository, params).execute
+ branches = BranchesFinder.new(@repository, params).execute.map(&:name)
options = {
'Branches' => branches.take(100),
}
unless @repository.tag_count.zero?
- tags = TagsFinder.new(@repository, params).execute
+ tags = TagsFinder.new(@repository, params).execute.map(&:name)
+
options['Tags'] = tags.take(100)
end