Skip to content

Commit

Permalink
Merge branch 'gp/maint-cvsserver' into maint
Browse files Browse the repository at this point in the history
* gp/maint-cvsserver:
  git-cvsserver: allow regex metacharacters in CVSROOT
  • Loading branch information
Junio C Hamano committed Feb 10, 2010
2 parents 410e99f + f9acaea commit 800d1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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/ );

Expand Down

0 comments on commit 800d1fb

Please sign in to comment.