Commit 9eaf0fe2 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'remove-repopath-check' into 'master'

Remove RepoPath check on Git HTTP

See merge request gitlab-org/gitlab-workhorse!244
parents 807b9069 4ff6c9f2
......@@ -63,11 +63,6 @@ func postRPCHandler(a *api.API, name string, handler func(*GitHttpResponseWriter
func repoPreAuthorizeHandler(myAPI *api.API, handleFunc api.HandleFunc) http.Handler {
return myAPI.PreAuthorizeHandler(func(w http.ResponseWriter, r *http.Request, a *api.Response) {
if a.RepoPath == "" {
helper.Fail500(w, r, fmt.Errorf("repoPreAuthorizeHandler: RepoPath empty"))
return
}
handleFunc(w, r, a)
}, "")
}
......
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