Merge branch 'gp/maint-cvsserver'
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Jan 2010 08:46:33 +0000 (00:46 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jan 2010 08:46:33 +0000 (00:46 -0800)
* gp/maint-cvsserver:
git-cvsserver: allow regex metacharacters in CVSROOT

git-cvsserver.perl
index 28041060c8a36ac2b89ee179501c2ec726f4606b..13751db882dd2c40e2c78503eba0d3f941297644 100755 (executable)
@@ -408,7 +408,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/ );