Merge branch 'maint-1.6.0' into maint
[gitweb.git] / gitweb / gitweb.perl
index 8f574c7b364257ed14e0a51d57eb163ec38b182c..99f71b47c2a6b53bb52ce29e96361e7c2acbe19d 100755 (executable)
@@ -2147,8 +2147,9 @@ sub git_get_projects_list {
 
                                my $subdir = substr($File::Find::name, $pfxlen + 1);
                                # we check related file in $projectroot
-                               if (check_export_ok("$projectroot/$filter/$subdir")) {
-                                       push @list, { path => ($filter ? "$filter/" : '') . $subdir };
+                               my $path = ($filter ? "$filter/" : '') . $subdir;
+                               if (check_export_ok("$projectroot/$path")) {
+                                       push @list, { path => $path };
                                        $File::Find::prune = 1;
                                }
                        },