From aaee9ec8a9db48b2a9073809ecf416e142c84030 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Tue, 5 Nov 2019 13:09:18 +0300 Subject: [PATCH] gitweb: Do not recursively scan for Git repositories Temporary directories are now hidden when cloning remote repositories. Fixes #1677 Signed-off-by: Veiko Aasa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/gitweb/data/etc/gitweb-freedombox.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/gitweb/data/etc/gitweb-freedombox.conf b/plinth/modules/gitweb/data/etc/gitweb-freedombox.conf index 32c6b48d0..332fd327c 100644 --- a/plinth/modules/gitweb/data/etc/gitweb-freedombox.conf +++ b/plinth/modules/gitweb/data/etc/gitweb-freedombox.conf @@ -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'}){