Skip to content

Commit 800d1fb

Browse files
committed
Merge branch 'gp/maint-cvsserver' into maint
* gp/maint-cvsserver: git-cvsserver: allow regex metacharacters in CVSROOT
2 parents 410e99f + f9acaea commit 800d1fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cvsserver.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ sub req_Directory
388388
$state->{localdir} = $data;
389389
$state->{repository} = $repository;
390390
$state->{path} = $repository;
391-
$state->{path} =~ s/^$state->{CVSROOT}\///;
391+
$state->{path} =~ s/^\Q$state->{CVSROOT}\E\///;
392392
$state->{module} = $1 if ($state->{path} =~ s/^(.*?)(\/|$)//);
393393
$state->{path} .= "/" if ( $state->{path} =~ /\S/ );
394394

0 commit comments

Comments
 (0)