Skip to content
Snippets Groups Projects
Commit b62ffd93 authored by Phil Hughes's avatar Phil Hughes
Browse files

Changed how the data is returned - we only care about the branch/tag name

parent c4ebeb8a
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !7239. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -94,8 +94,8 @@
link.className = 'is-active';
}
 
link.textContent = ref.name;
link.dataset.ref = ref.name;
link.textContent = ref;
link.dataset.ref = ref;
 
li.appendChild(link);
}
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment