fix grack accessing files beginning with .git
This commit is contained in:
parent
ffe064a2c1
commit
ff976bc86c
|
@ -18,7 +18,7 @@ Gitlab::Application.routes.draw do
|
||||||
project_root: Gitlab.config.gitolite.repos_path,
|
project_root: Gitlab.config.gitolite.repos_path,
|
||||||
upload_pack: Gitlab.config.gitolite.upload_pack,
|
upload_pack: Gitlab.config.gitolite.upload_pack,
|
||||||
receive_pack: Gitlab.config.gitolite.receive_pack
|
receive_pack: Gitlab.config.gitolite.receive_pack
|
||||||
}), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git/.match(request.path_info) }
|
}), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git\//.match(request.path_info) }
|
||||||
|
|
||||||
#
|
#
|
||||||
# Help
|
# Help
|
||||||
|
|
Loading…
Reference in a new issue