Merge branch 'jk/doc-read-tree-table-asciidoctor-fix'
[gitweb.git] / gitweb / gitweb.perl
index 6be4c50af07ef1bec7e12cf83dabfa4e52ab7422..959f04b494e610258488867aa7de013a3477e5fc 100755 (executable)
@@ -3071,6 +3071,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) {