summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-05-21 04:02:20 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-05-21 04:02:20 -0700
commit71f1d729b39ce5c92df6d623151f88bbb5d4c774 (patch)
tree27ca50a63bbb0147a63ff11b206eb022094fcd88
parentMerge branch 'jn/request-pull' (diff)
parentgitweb: Silence 'Variable VAR may be unavailable' warnings (diff)
downloadtgif-71f1d729b39ce5c92df6d623151f88bbb5d4c774.tar.xz
Merge branch 'jn/gitweb-our-squelch'
* jn/gitweb-our-squelch: gitweb: Silence 'Variable VAR may be unavailable' warnings
-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