summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-11 20:27:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-11 20:27:01 (GMT)
commita6ca9ee9e0e30bc96afbdc7d99acf411fbf409c0 (patch)
tree16cb7c88f641b30aaab55ba869eb29e6f922fd44 /gitweb
parent2b473ce78c5af196caf219fe021c0453108e0244 (diff)
parent46a13857fc036b54ac2ddd0a218e5cc171aa7bd9 (diff)
downloadgit-a6ca9ee9e0e30bc96afbdc7d99acf411fbf409c0.zip
git-a6ca9ee9e0e30bc96afbdc7d99acf411fbf409c0.tar.gz
git-a6ca9ee9e0e30bc96afbdc7d99acf411fbf409c0.tar.bz2
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
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3d4a8ee..9208f42 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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) {