From af1a6f0533854cca76d4b0bcf2059131a1bfd106 Mon Sep 17 00:00:00 2001 From: ubudzisz Date: Thu, 7 Jul 2016 13:27:01 +0200 Subject: [PATCH] add try to title method --- app/views/projects/builds/_sidebar.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml index aba09a37ac7..3fc1157ddcb 100644 --- a/app/views/projects/builds/_sidebar.html.haml +++ b/app/views/projects/builds/_sidebar.html.haml @@ -96,7 +96,7 @@ .title Commit title %p.build-light-text.append-bottom-0 - #{@build.commit.title} + #{@build.pipeline.commit.try(:title)} - if @build.tags.any? .block