cvsserver: Do not include status output for subdirectories if -l is passed
This effectively implements the -l switch by pruning the entries whose filenames contain a path separator. It was previously ignored. Without this, TkCVS includes strange "ghost" entries in its directory listings. Signed-off-by: Damien Diederen <dash@foobox.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Damien Diederen committed
Mar 27, 2008 at 23:17 UTC
852b921c78ca33606600d7fd45e573a8435dbcb8
1 file changed
+2
git-cvsserver.perl
+2
@@ -1428,6 +1428,8 @@ sub req_status
1428
{
1429
$filename = filecleanup($filename);
1430
1431
+ next if exists($state->{opt}{l}) && index($filename, '/', length($state->{prependdir})) >= 0;
1432
+
1433
my $meta = $updater->getmeta($filename);
1434
my $oldmeta = $meta;
1435