Browse Source

Merge branch 'jn/gitweb-our-squelch'

* jn/gitweb-our-squelch:
  gitweb: Silence 'Variable VAR may be unavailable' warnings
maint
Junio C Hamano 15 years ago
parent
commit
71f1d729b3
  1. 3
      gitweb/gitweb.perl

3
gitweb/gitweb.perl

@ -2420,6 +2420,9 @@ sub git_get_projects_list { @@ -2420,6 +2420,9 @@ sub git_get_projects_list {
follow_skip => 2, # ignore duplicates
dangling_symlinks => 0, # ignore dangling symlinks, silently
wanted => sub {
# global variables
our $project_maxdepth;
our $projectroot;
# skip project-list toplevel, if we get it.
return if (m!^[/.]$!);
# only directories can be git repositories

Loading…
Cancel
Save