Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
cvsserver: fix "cvs diff" in a subdirectory
author
Johannes Schindelin
<Johannes.Schindelin@gmx.de>
Tue, 10 Oct 2006 22:33:28 +0000
(
00:33
+0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0a7a9a1
)
diff --git
a/git-cvsserver.perl
b/git-cvsserver.perl
index 4de50d029d908698687ebd07d24745bda33e89f2..08ad831a3900d4ac0bc04b4e9bd371ffcb54e1ae 100755
(executable)
--- 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/ );
$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};
{
$log->info("Setting prepend to '$state->{path}'");
$state->{prependdir} = $state->{path};