Hielke Christian Braun <h...@unco.de> writes:

> Hi,
>
> gitweb terminates and shows no project list, if it can not access a
> sub-directory in the project root directory. It should show a list of
> the projects it can access. Patch corrects this by skipping inaccessible
> directories.
>
>
> Signed-off-by: Hielke Christian Braun <h...@unco.de>
>
>
> ---
>  gitweb/gitweb.perl | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
> index 3d4a8ee27c96a..9208f42ed1753 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) {
>
> --
> https://github.com/git/git/pull/384

I've tweaked the title and the log message further before queuing
the patch.

Thanks.  

Reply via email to