Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'hb/gitweb-project-list'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 11 Aug 2017 20:27:01 +0000
(13:27 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 11 Aug 2017 20:27:01 +0000
(13:27 -0700)
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
gitweb/gitweb.perl
patch
|
blob
|
history
raw
(from parent 1:
2b473ce
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 3d4a8ee27c96a8e1eb94f95771aeca7825f8a076..9208f42ed1753530b8ea46761f8ecc61bbe95976 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) {