Skip to content

Commit a6ca9ee

Browse files
committed
Merge branch 'hb/gitweb-project-list'
When a directory is not readable, "gitweb" fails to build the project list. Work this around by skipping such a directory. * hb/gitweb-project-list: gitweb: skip unreadable subdirectories
2 parents 2b473ce + 46a1385 commit a6ca9ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3071,6 +3071,8 @@ sub git_get_projects_list {
30713071
return if (m!^[/.]$!);
30723072
# only directories can be git repositories
30733073
return unless (-d $_);
3074+
# need search permission
3075+
return unless (-x $_);
30743076
# don't traverse too deep (Find is super slow on os x)
30753077
# $project_maxdepth excludes depth of $projectroot
30763078
if (($File::Find::name =~ tr!/!!) - $pfxdepth > $project_maxdepth) {

0 commit comments

Comments
 (0)