summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-06-08 18:36:43 +0200
committerRobert Speicher <rspeicher@gmail.com>2016-06-08 16:00:49 -0400
commit63ed80321b00b96b79e064d1932528b8617d1625 (patch)
treecf38dd054778df9367545a59051077c9dc5d6b0b /app/controllers
parent53498e42868f258a5e0cda7894fa4de8e8d4f8e9 (diff)
downloadgitlab-ce-63ed80321b00b96b79e064d1932528b8617d1625.tar.gz
Skip authenticity token checks for Git HTTP
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/git_http_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb
index 380139a9c30..348d6cf4d96 100644
--- a/app/controllers/projects/git_http_controller.rb
+++ b/app/controllers/projects/git_http_controller.rb
@@ -1,6 +1,8 @@
class Projects::GitHttpController < Projects::ApplicationController
attr_reader :user
+ # Git clients will not know what authenticity token to send along
+ skip_before_action :verify_authenticity_token
skip_before_action :repository
before_action :authenticate_user
before_action :ensure_project_found!