Code

cvsserver: fix "cvs diff" in a subdirectory
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 10 Oct 2006 22:33:28 +0000 (00:33 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 15 Oct 2006 01:19:13 +0000 (18:19 -0700)
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsserver.perl

index 4de50d029d908698687ebd07d24745bda33e89f2..08ad831a3900d4ac0bc04b4e9bd371ffcb54e1ae 100755 (executable)
@@ -275,7 +275,7 @@ sub req_Directory
     $state->{directory} = "" if ( $state->{directory} eq "." );
     $state->{directory} .= "/" if ( $state->{directory} =~ /\S/ );
 
-    if ( not defined($state->{prependdir}) and $state->{localdir} eq "." and $state->{path} =~ /\S/ )
+    if ( (not defined($state->{prependdir}) or $state->{prependdir} eq '') and $state->{localdir} eq "." and $state->{path} =~ /\S/ )
     {
         $log->info("Setting prepend to '$state->{path}'");
         $state->{prependdir} = $state->{path};