gitweb: Do not recursively scan for Git repositories

Temporary directories are now hidden when cloning remote repositories.

Fixes #1677

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Veiko Aasa 2019-11-05 13:09:18 +03:00 committed by Sunil Mohan Adapa
parent 7eb6d23e83
commit aaee9ec8a9
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -40,6 +40,9 @@ $feature{'pickaxe'}{'default'} = [1];
# enable syntax highlighting
$feature{'highlight'}{'default'} = [1];
# do not recursively scan for Git repositories
our $project_maxdepth = 1;
# export private repos only if authorized
our $per_request_config = sub {
if(defined $ENV{'REMOTE_USER_TOKENS'}){