mirror of
https://github.com/git/git
synced 2024-09-13 05:14:36 +00:00
Merge branch 'gp/maint-cvsserver' into maint
* gp/maint-cvsserver: git-cvsserver: allow regex metacharacters in CVSROOT
This commit is contained in:
commit
800d1fb0ab
|
@ -388,7 +388,7 @@ sub req_Directory
|
||||||
$state->{localdir} = $data;
|
$state->{localdir} = $data;
|
||||||
$state->{repository} = $repository;
|
$state->{repository} = $repository;
|
||||||
$state->{path} = $repository;
|
$state->{path} = $repository;
|
||||||
$state->{path} =~ s/^$state->{CVSROOT}\///;
|
$state->{path} =~ s/^\Q$state->{CVSROOT}\E\///;
|
||||||
$state->{module} = $1 if ($state->{path} =~ s/^(.*?)(\/|$)//);
|
$state->{module} = $1 if ($state->{path} =~ s/^(.*?)(\/|$)//);
|
||||||
$state->{path} .= "/" if ( $state->{path} =~ /\S/ );
|
$state->{path} .= "/" if ( $state->{path} =~ /\S/ );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue