Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-06-24 17:41:10 +0300
committerPatricio Cano <suprnova32@gmail.com>2016-07-06 00:54:22 +0300
commit0f54e2ae6c6b5e1d196bf133de5ef92e907ea816 (patch)
tree6f6a941fd9446f6a5cca0bb9b9dd5a62727f37ec /app
parent08018b7a7a6e885952f0ade3b62e2059239bddc7 (diff)
Render the status message with `plain:` so that the message gets passed to the Git client.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/git_http_controller.rb2
1 files changed, 1 insertions, 1 deletions
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?