]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-cvsserver.perl
Merge branch 'jk/maint-rmdir-fix' into maint-1.6.6
[thirdparty/git.git] / git-cvsserver.perl
index 6dc45f5d45a44c9bbe31987c1a10e4554f037d6c..046f5578a11f2d0dc5326b4b4593b0093f006b15 100755 (executable)
@@ -388,7 +388,7 @@ sub req_Directory
     $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/ );