Skip to content

Commit 242ff87

Browse files
committed
Merge branch 'mm/maint-gitweb-project-maxdepth'
* mm/maint-gitweb-project-maxdepth: gitweb: accept trailing "/" in $project_list
2 parents e1e3c06 + ac593b7 commit 242ff87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,8 +2836,8 @@ sub git_get_projects_list {
28362836
my $dir = $projects_list;
28372837
# remove the trailing "/"
28382838
$dir =~ s!/+$!!;
2839-
my $pfxlen = length("$projects_list");
2840-
my $pfxdepth = ($projects_list =~ tr!/!!);
2839+
my $pfxlen = length("$dir");
2840+
my $pfxdepth = ($dir =~ tr!/!!);
28412841
# when filtering, search only given subdirectory
28422842
if ($filter) {
28432843
$dir .= "/$filter";

0 commit comments

Comments
 (0)