Merge branch 'mm/maint-gitweb-project-maxdepth'

* mm/maint-gitweb-project-maxdepth:
  gitweb: accept trailing "/" in $project_list
This commit is contained in:
Junio C Hamano 2012-01-09 15:58:30 -08:00
commit 242ff87975

View file

@ -2836,8 +2836,8 @@ sub git_get_projects_list {
my $dir = $projects_list;
# remove the trailing "/"
$dir =~ s!/+$!!;
my $pfxlen = length("$projects_list");
my $pfxdepth = ($projects_list =~ tr!/!!);
my $pfxlen = length("$dir");
my $pfxdepth = ($dir =~ tr!/!!);
# when filtering, search only given subdirectory
if ($filter) {
$dir .= "/$filter";