From fe465004489024f731835d5eb934efa2decf6ac3 Mon Sep 17 00:00:00 2001
From: skv <skv-headless@yandex.ru>
Date: Thu, 14 Aug 2014 15:20:34 +0400
Subject: [PATCH] gfm and preserve commit message

for commits#show
---
 app/views/projects/commits/_commit.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml
index abe0d4cff4631..8e73663939f70 100644
--- a/app/views/projects/commits/_commit.html.haml
+++ b/app/views/projects/commits/_commit.html.haml
@@ -23,7 +23,7 @@
   - if commit.description?
     .commit-row-description.js-toggle-content
       %pre
-        = commit.description
+        = preserve(gfm(escape_once(commit.description)))
 
   .commit-row-info
     = commit_author_link(commit, avatar: true, size: 16)
-- 
GitLab