diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-02-10 13:02:52 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-10 13:02:52 -0800 |
commit | 800d1fb0ab4bc9c1f4cd13f7cb7d8851f23a3e50 (patch) | |
tree | 0eb8a11bfca412c437e803339307a05224d26e36 | |
parent | Merge branch 'jc/maint-reflog-bad-timestamp' into maint (diff) | |
parent | git-cvsserver: allow regex metacharacters in CVSROOT (diff) | |
download | tgif-800d1fb0ab4bc9c1f4cd13f7cb7d8851f23a3e50.tar.xz |
Merge branch 'gp/maint-cvsserver' into maint
* gp/maint-cvsserver:
git-cvsserver: allow regex metacharacters in CVSROOT
-rwxr-xr-x | git-cvsserver.perl | 2 |
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/ ); |