Skip to content

Commit df73e9c

Browse files
Martin LanghoffJunio C Hamano
authored andcommitted
[PATCH] cvsimport: don't pass --cvs-direct if user options contradict us
Detecting if the user passed --no-cvs-direct and don't force the mode. It allows us to support all the protocol that the standard cvs client supports at the snail speed you should expect. This only affects the rlog reading stage. Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
1 parent 18e410f commit df73e9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

git-cvsimport.perl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,10 @@ ($$)
487487
my @opt;
488488
@opt = split(/,/,$opt_p) if defined $opt_p;
489489
unshift @opt, '-z', $opt_z if defined $opt_z;
490-
exec("cvsps",@opt,"-u","-A","--cvs-direct",'--root',$opt_d,$cvs_tree);
490+
unless ($opt_p =~ m/--no-cvs-direct/) {
491+
push @opt, '--cvs-direct';
492+
}
493+
exec("cvsps",@opt,"-u","-A",'--root',$opt_d,$cvs_tree);
491494
die "Could not start cvsps: $!\n";
492495
}
493496

0 commit comments

Comments
 (0)