diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb index 97998352255ff6e1aa47b64cd2e1031bcf9753e1..50556954817551eb91c5c7f8c4c807780a35f0bd 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 ce1c3d023f538a394934c9241e94fb2216418688..0000000000000000000000000000000000000000 --- a/app/views/commit/show.patch.erb +++ /dev/null @@ -1 +0,0 @@ -<%= @commit.to_patch %>