Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-11 13:09:26 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-08-11 13:09:26 +0300
commitd84aa560331a646016880e4d2c5c0a3b3d4b32a6 (patch)
tree6324311802cda06b6bdfff99d8e96faac1b35a43 /app/views/projects/tags
parent2a435e1d116065496fcb82f9b2182f7037d4c8b3 (diff)
Make Pipeline.latest_successful_for return the record
Diffstat (limited to 'app/views/projects/tags')
-rw-r--r--app/views/projects/tags/_download.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/tags/_download.html.haml b/app/views/projects/tags/_download.html.haml
index bb2e5224306..ba3fd4627af 100644
--- a/app/views/projects/tags/_download.html.haml
+++ b/app/views/projects/tags/_download.html.haml
@@ -12,7 +12,7 @@
%li
= link_to archive_namespace_project_repository_path(project.namespace, project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do
%span Download tar.gz
- - pipeline = project.pipelines.latest_successful_for(ref).first
+ - pipeline = project.pipelines.latest_successful_for(ref)
- if pipeline
- artifacts = pipeline.builds.latest.with_artifacts
- if artifacts.any?