From 0f54e2ae6c6b5e1d196bf133de5ef92e907ea816 Mon Sep 17 00:00:00 2001
From: Patricio Cano <suprnova32@gmail.com>
Date: Fri, 24 Jun 2016 09:41:10 -0500
Subject: [PATCH] Render the status message with `plain:` so that the message
 gets passed to the Git client.

---
 app/controllers/projects/git_http_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb
index ef7ccccd9e5..273be813435 100644
--- a/app/controllers/projects/git_http_controller.rb
+++ b/app/controllers/projects/git_http_controller.rb
@@ -157,7 +157,7 @@ class Projects::GitHttpController < Projects::ApplicationController
   end
 
   def render_not_allowed
-    render json: access.to_json, status: :forbidden
+    render plain: access.message, status: :forbidden
   end
 
   def ci?
-- 
GitLab