Skip to content

Commit

Permalink
cvsserver: Do not include status output for subdirectories if -l is p…
Browse files Browse the repository at this point in the history
…assed

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>
  • Loading branch information
Damien Diederen authored and Junio C Hamano committed Mar 27, 2008
1 parent 23b7180 commit 852b921
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 852b921

Please sign in to comment.