diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-24 17:41:10 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-06 00:54:22 +0300 |
commit | 0f54e2ae6c6b5e1d196bf133de5ef92e907ea816 (patch) | |
tree | 6f6a941fd9446f6a5cca0bb9b9dd5a62727f37ec /app/controllers/projects/git_http_controller.rb | |
parent | 08018b7a7a6e885952f0ade3b62e2059239bddc7 (diff) |
Render the status message with `plain:` so that the message gets passed to the Git client.
Diffstat (limited to 'app/controllers/projects/git_http_controller.rb')
-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? |