Skip to content

Commit

Permalink
cvsserver: cvs add: do not expand directory arguments
Browse files Browse the repository at this point in the history
Standard "cvs add" never does any recursion.  With standard
cvs, "cvs add dir" will either add just the "dir" to
the repository, or error out.  Prior to this change, git-cvsserver
would try to recurse (perhaps re-adding sandbox-removed files?) into
the existing directory instead.

Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Matthew Ogilvie authored and Junio C Hamano committed Oct 16, 2012
1 parent ab07681 commit bed8a19
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,6 @@ sub req_add
my $updater = GITCVS::updater->new($state->{CVSROOT}, $state->{module}, $log);
$updater->update();

argsfromdir($updater);

my $addcount = 0;

foreach my $filename ( @{$state->{args}} )
Expand Down

0 comments on commit bed8a19

Please sign in to comment.