The source project of this merge request has been removed.
Allow nested namespaces in git URLs
GitLab Rails is introducing support for nested namespaces - foo/bar/project
. We need to support it in workhorse too.
This change shadows a number of routes which receive special handling in Workhorse.
GET requests (.../info/refs
) go through the PreAuthorizeHandler
, so are buffered in Workhorse before being sent to the client.
POST and PUT requests (git-receive-pack
, git-upload-pack
, gitlab-lfs
) are disambiguated through stricter matching based on request content-type. Note that this will break clients that don't set the expected content-type!
Closes #74 (closed)
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/2772 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7121