summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-10-10 22:33:28 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-15 01:19:13 (GMT)
commitd988b82232bb8f5826a1619fd4dcba1a5a330f27 (patch)
treede6f9409fb8163f82e346b9e60937762055ef44b /git-cvsserver.perl
parent0a7a9a12d65ca75601f841c93222652f41de09c0 (diff)
downloadgit-d988b82232bb8f5826a1619fd4dcba1a5a330f27.zip
git-d988b82232bb8f5826a1619fd4dcba1a5a330f27.tar.gz
git-d988b82232bb8f5826a1619fd4dcba1a5a330f27.tar.bz2
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>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-xgit-cvsserver.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 4de50d0..08ad831 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -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};