1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-07 02:16:09 +02:00

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>
This commit is contained in:
Damien Diederen 2008-03-27 23:17:53 +01:00 committed by Junio C Hamano
parent 23b7180fdc
commit 852b921c78

View File

@ -1428,6 +1428,8 @@ sub req_status
{
$filename = filecleanup($filename);
next if exists($state->{opt}{l}) && index($filename, '/', length($state->{prependdir})) >= 0;
my $meta = $updater->getmeta($filename);
my $oldmeta = $meta;