Skip to content

Commit

Permalink
Merge branch 'mm/maint-gitweb-project-maxdepth'
Browse files Browse the repository at this point in the history
* mm/maint-gitweb-project-maxdepth:
  gitweb: accept trailing "/" in $project_list
  • Loading branch information
Junio C Hamano committed Jan 9, 2012
2 parents e1e3c06 + ac593b7 commit 242ff87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 242ff87

Please sign in to comment.