Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: skip unreadable subdirectories
author
Hielke Christian Braun
<hcb@unco.de>
Tue, 18 Jul 2017 08:41:54 +0000
(10:41 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 18 Jul 2017 19:10:17 +0000
(12:10 -0700)
gitweb terminates and shows no project list, if it can not access a
sub-directory in the project root directory while looking for projects
to show.
Work it around by skipping unreadable directories.
Signed-off-by: Hielke Christian Braun <hcb@unco.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
08f9c32
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index d8209c7a02d8753af4724f385a4ea783384536f6..8318411b9123415a9af9cd514c2ae6169d546c38 100755
(executable)
--- 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) {