diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml
index 00e7ca757aaae3ad9b7ec20b8ed4fb6c1560ba5f..9f1b18e053da9707ea7c52857637e6370ab5ca3a 100644
--- a/app/views/projects/builds/_sidebar.html.haml
+++ b/app/views/projects/builds/_sidebar.html.haml
@@ -95,8 +95,8 @@
   .block
     .title
       Commit title
-    %p.build-light-text.append-bottom-
-      #{@build.pipeline.commit.title}
+    %p.build-light-text.append-bottom-0
+      #{@build.commit.title}