cvsserver: fix "cvs diff" in a subdirectory
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Oct 11, 2006 at 00:33 UTC
d988b82232bb8f5826a1619fd4dcba1a5a330f27
1 file changed
+1
-1
git-cvsserver.perl
+1
-1
@@ -275,7 +275,7 @@ sub req_Directory
275
$state->{directory} = "" if ( $state->{directory} eq "." );
276
$state->{directory} .= "/" if ( $state->{directory} =~ /\S/ );
277
278
- if ( not defined($state->{prependdir}) and $state->{localdir} eq "." and $state->{path} =~ /\S/ )
278
+ if ( (not defined($state->{prependdir}) or $state->{prependdir} eq '') and $state->{localdir} eq "." and $state->{path} =~ /\S/ )
279
{
280
$log->info("Setting prepend to '$state->{path}'");
281
$state->{prependdir} = $state->{path};