summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-10 13:02:52 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-10 13:02:52 -0800
commit800d1fb0ab4bc9c1f4cd13f7cb7d8851f23a3e50 (patch)
tree0eb8a11bfca412c437e803339307a05224d26e36
parent410e99fadf25b65b70d9bf90fd8bd5a5d1ea3c8a (diff)
parentf9acaeae880feb87ae52e719aab930bf1f3e8413 (diff)
downloadgit-800d1fb0ab4bc9c1f4cd13f7cb7d8851f23a3e50.tar.gz
Merge branch 'gp/maint-cvsserver' into maint
* gp/maint-cvsserver: git-cvsserver: allow regex metacharacters in CVSROOT
-rwxr-xr-xgit-cvsserver.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 6dc45f5d45..046f5578a1 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -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/ );