summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:20 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:20 -0700
commit71f1d729b39ce5c92df6d623151f88bbb5d4c774 (patch)
tree27ca50a63bbb0147a63ff11b206eb022094fcd88 /gitweb
parent3b65270dcc1fe2d16f055d1a36a29616b9f89141 (diff)
parentee1d8ee0f0f3faaa72f5c4886e61befaf7915718 (diff)
downloadgit-71f1d729b39ce5c92df6d623151f88bbb5d4c774.tar.gz
Merge branch 'jn/gitweb-our-squelch'
* jn/gitweb-our-squelch: gitweb: Silence 'Variable VAR may be unavailable' warnings
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 77e5f795a1..4e64fc86bd 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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