Commit 72699d97 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Should be branch.name, not root ref

parent dcb436f5
......@@ -27,7 +27,7 @@
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: branch.name), class: 'btn btn-default', method: :post, title: "Compare" do
Compare
- artifacts = @project.latest_success_builds_for(@repository.root_ref)
- artifacts = @project.latest_success_builds_for(branch.name)
- if artifacts.any?
.dropdown.inline.artifacts-btn
%a.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment