diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-24 09:41:10 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-05 16:54:22 -0500 |
commit | 0f54e2ae6c6b5e1d196bf133de5ef92e907ea816 (patch) | |
tree | 6f6a941fd9446f6a5cca0bb9b9dd5a62727f37ec | |
parent | 08018b7a7a6e885952f0ade3b62e2059239bddc7 (diff) | |
download | gitlab-ce-0f54e2ae6c6b5e1d196bf133de5ef92e907ea816.tar.gz |
Render the status message with `plain:` so that the message gets passed to the Git client.
-rw-r--r-- | app/controllers/projects/git_http_controller.rb | 2 |
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? |