Fix cvsimport warning when called without --no-cvs-direct
Perl was warning that $opt_p was undefined in that case. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Johannes Schindelin committed
Oct 18, 2005 at 11:35 UTC
e175768954816b00bbbba131ec1c411d2cd66582
1 file changed
+1
-1
git-cvsimport.perl
+1
-1
@@ -487,7 +487,7 @@ unless($pid) {
487
my @opt;
488
@opt = split(/,/,$opt_p) if defined $opt_p;
489
unshift @opt, '-z', $opt_z if defined $opt_z;
490
- unless ($opt_p =~ m/--no-cvs-direct/) {
490
+ unless (defined($opt_p) && $opt_p =~ m/--no-cvs-direct/) {
491
push @opt, '--cvs-direct';
492
}
493
exec("cvsps",@opt,"-u","-A",'--root',$opt_d,$cvs_tree);