From a29905c08268b6cd991de3f6770b4d3be371b487 Mon Sep 17 00:00:00 2001 From: ubudzisz <ubudzisz@gmail.com> 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 9f1b18e053d..ee1b95e9e84 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)} -- GitLab