Commit d3541da4 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Comment and whitespace

parent e7cea8cd
...@@ -3,6 +3,17 @@ class Projects::GitHttpController < Projects::ApplicationController ...@@ -3,6 +3,17 @@ class Projects::GitHttpController < Projects::ApplicationController
before_action :authenticate_user before_action :authenticate_user
before_action :project_found? before_action :project_found?
# We support two actions (git push and git pull) which use four
# different HTTP requests:
#
# - GET /foo/bar.git/info/refs?service=git-upload-pack (pull)
# - GET /foo/bar.git/info/refs?service=git-receive-pack (push)
# - POST /foo/bar.git/git-upload-pack (pull)
# - POST /foo/bar.git/git-receive-pack" (push)
#
# The Rails routes divide these four requests over three methods:
# info_refs, git_upload_pack, and git_receive_pack.
def git_rpc def git_rpc
if upload_pack? && upload_pack_allowed? if upload_pack? && upload_pack_allowed?
render_ok render_ok
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment