From 6ddf4567f43497a10e7faddf98d0a5d467bf043c Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Thu, 22 Nov 2012 12:45:39 +0100 Subject: [PATCH] Don't escape Html in patches Fixes #2036 --- app/controllers/commit_controller.rb | 2 +- app/views/commit/show.patch.erb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 app/views/commit/show.patch.erb diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb index 97998352255..50556954817 100644 --- a/app/controllers/commit_controller.rb +++ b/app/controllers/commit_controller.rb @@ -26,7 +26,7 @@ class CommitController < ProjectResourceController end end - format.patch + format.patch { render text: @commit.to_patch } end end end diff --git a/app/views/commit/show.patch.erb b/app/views/commit/show.patch.erb deleted file mode 100644 index ce1c3d023f5..00000000000 --- a/app/views/commit/show.patch.erb +++ /dev/null @@ -1 +0,0 @@ -<%= @commit.to_patch %> -- GitLab