Merge branch 'jn/gitweb-our-squelch'
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 May 2010 11:02:20 +0000 (04:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 May 2010 11:02:20 +0000 (04:02 -0700)
* jn/gitweb-our-squelch:
gitweb: Silence 'Variable VAR may be unavailable' warnings

gitweb/gitweb.perl
index 77e5f795a1d0ff847b19b03336cb090155bf3113..4e64fc86bd29b6bf3762be6034be5662cccf18c1 100755 (executable)
@@ -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