mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
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:
parent
7eb6d23e83
commit
aaee9ec8a9
@ -40,6 +40,9 @@ $feature{'pickaxe'}{'default'} = [1];
|
|||||||
# enable syntax highlighting
|
# enable syntax highlighting
|
||||||
$feature{'highlight'}{'default'} = [1];
|
$feature{'highlight'}{'default'} = [1];
|
||||||
|
|
||||||
|
# do not recursively scan for Git repositories
|
||||||
|
our $project_maxdepth = 1;
|
||||||
|
|
||||||
# export private repos only if authorized
|
# export private repos only if authorized
|
||||||
our $per_request_config = sub {
|
our $per_request_config = sub {
|
||||||
if(defined $ENV{'REMOTE_USER_TOKENS'}){
|
if(defined $ENV{'REMOTE_USER_TOKENS'}){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user