fa3bbd449e
When we updated gitlab_git to 10.4.1, `tag.target` changed from pointing to the sha of the tag to the sha of the commit the tag points to. The problem is that only annotated tags have `object_sha`s, lightweight tags don't (it's nil), so (only) in their case we still need to use `tag.target`.
15 lines
699 B
Text
15 lines
699 B
Text
- if @related_branches.any?
|
|
%h2.related-branches-title
|
|
= pluralize(@related_branches.count, 'Related Branch')
|
|
%ul.unstyled-list.related-merge-requests
|
|
- @related_branches.each do |branch|
|
|
%li
|
|
- target = @project.repository.find_branch(branch).dereferenced_target
|
|
- pipeline = @project.pipeline_for(branch, target.sha) if target
|
|
- if pipeline
|
|
%span.related-branch-ci-status
|
|
= render_pipeline_status(pipeline)
|
|
%span.related-branch-info
|
|
%strong
|
|
= link_to namespace_project_compare_path(@project.namespace, @project, from: @project.default_branch, to: branch), class: "label-branch" do
|
|
= branch
|