Skip to content

Commit 71f1d72

Browse files
committed
Merge branch 'jn/gitweb-our-squelch'
* jn/gitweb-our-squelch: gitweb: Silence 'Variable VAR may be unavailable' warnings
2 parents 3b65270 + ee1d8ee commit 71f1d72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitweb/gitweb.perl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,6 +2420,9 @@ sub git_get_projects_list {
24202420
follow_skip => 2, # ignore duplicates
24212421
dangling_symlinks => 0, # ignore dangling symlinks, silently
24222422
wanted => sub {
2423+
# global variables
2424+
our $project_maxdepth;
2425+
our $projectroot;
24232426
# skip project-list toplevel, if we get it.
24242427
return if (m!^[/.]$!);
24252428
# only directories can be git repositories

0 commit comments

Comments
 (0)