mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'mm/maint-gitweb-project-maxdepth'
* mm/maint-gitweb-project-maxdepth: gitweb: accept trailing "/" in $project_list
This commit is contained in:
commit
242ff87975
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue