Commits

Anonymous committed 811428e Merge

Merge branch 'gp/maint-cvsserver'

* gp/maint-cvsserver:
git-cvsserver: allow regex metacharacters in CVSROOT

Comments (0)

Files changed (1)

git-cvsserver.perl

     $state->{localdir} = $data;
     $state->{repository} = $repository;
     $state->{path} = $repository;
-    $state->{path} =~ s/^$state->{CVSROOT}\///;
+    $state->{path} =~ s/^\Q$state->{CVSROOT}\E\///;
     $state->{module} = $1 if ($state->{path} =~ s/^(.*?)(\/|$)//);
     $state->{path} .= "/" if ( $state->{path} =~ /\S/ );