From: Johannes Schindelin Date: Tue, 10 Oct 2006 22:33:28 GMT Subject: [PATCH] cvsserver: fix "cvs diff" in a subdirectory Message-ID: Signed-off-by: Johannes Schindelin --- git-cvsserver.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 7260f32..da00432 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -277,7 +277,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}; -- 1.4.3.rc2.g55b2-dirty