summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubudzisz <ubudzisz@gmail.com>2016-07-07 13:27:01 +0200
committerubudzisz <ubudzisz@gmail.com>2016-07-18 12:39:24 +0200
commita29905c08268b6cd991de3f6770b4d3be371b487 (patch)
tree2ed097f954efcd2b39b91314c445e0761403f4be
parentc8c8fd928d5f55516e155b2616e2f79a720d36f9 (diff)
downloadgitlab-ce-a29905c08268b6cd991de3f6770b4d3be371b487.tar.gz
add try to title method
-rw-r--r--app/views/projects/builds/_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
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)}