X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/4ca9c7847a5ad6dd281879b2cc5a337ff91a13a1c55d08c330a7f49824b2eba8..9a3817961a2ce50f05a19d3e5007a930fed096b82cc16404afa3a6a1bdee5f6f:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 4819df8..d188faf 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3072,6 +3072,8 @@ sub git_get_projects_list { return if (m!^[/.]$!); # only directories can be git repositories return unless (-d $_); + # need search permission + return unless (-x $_); # don't traverse too deep (Find is super slow on os x) # $project_maxdepth excludes depth of $projectroot if (($File::Find::name =~ tr!/!!) - $pfxdepth > $project_maxdepth) { @@ -3126,7 +3128,7 @@ sub git_get_projects_list { return @list; } -# written with help of Tree::Trie module (Perl Artistic License, GPL compatibile) +# written with help of Tree::Trie module (Perl Artistic License, GPL compatible) # as side effects it sets 'forks' field to list of forks for forked projects sub filter_forks_from_projects_list { my $projects = shift; @@ -4377,7 +4379,7 @@ sub git_print_page_nav { "\n"; } -# returns a submenu for the nagivation of the refs views (tags, heads, +# returns a submenu for the navigation of the refs views (tags, heads, # remotes) with the current view disabled and the remotes view only # available if the feature is enabled sub format_ref_views {