diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-10-11 00:33:28 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-14 18:19:13 -0700 |
commit | d988b82232bb8f5826a1619fd4dcba1a5a330f27 (patch) | |
tree | de6f9409fb8163f82e346b9e60937762055ef44b /git-cvsserver.perl | |
parent | 0a7a9a12d65ca75601f841c93222652f41de09c0 (diff) | |
download | git-d988b82232bb8f5826a1619fd4dcba1a5a330f27.tar.gz |
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-x | git-cvsserver.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl index 4de50d029d..08ad831a39 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}; |