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 | |
parent | cvsserver: Show correct letters for modified, removed and added files (diff) | |
download | tgif-d988b82232bb8f5826a1619fd4dcba1a5a330f27.tar.xz |
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>
-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}; |