Commit 630502a3 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Whitelisted Grack route so http clones can work

parent 94464518
......@@ -60,7 +60,7 @@ module Gitlab
end
def whitelisted_routes
logout_route || WHITELISTED.any? { |path| @request.path.include?(path) } || sidekiq_route
logout_route || grack_route || WHITELISTED.any? { |path| @request.path.include?(path) } || sidekiq_route
end
def logout_route
......@@ -70,6 +70,10 @@ module Gitlab
def sidekiq_route
@request.path.start_with?('/admin/sidekiq')
end
def grack_route
@request.path.end_with?('.git/git-upload-pack')
end
end
end
end
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