summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-01-09 15:58:30 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-01-09 15:58:30 -0800
commit242ff87975199687d46bb8cca5207779a3872b6b (patch)
tree1e7f5836b161de6ad7d8c70b6ec67b6608a61933 /gitweb
parentMerge branch 'maint' (diff)
parentgitweb: accept trailing "/" in $project_list (diff)
downloadtgif-242ff87975199687d46bb8cca5207779a3872b6b.tar.xz
Merge branch 'mm/maint-gitweb-project-maxdepth'
* mm/maint-gitweb-project-maxdepth: gitweb: accept trailing "/" in $project_list
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index fc41b07bcb..285fe88403 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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";