Skip to content

Commit

Permalink
Merge branch 'gp/maint-cvsserver'
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 Jan 28, 2010
2 parents df3dac3 + f9acaea commit 811428e
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 @@ -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/ );

Expand Down

0 comments on commit 811428e

Please sign in to comment.