From: Johannes Schindelin Date: Tue, 18 Oct 2005 18:35:16 +0000 (-0700) Subject: Fix cvsimport warning when called without --no-cvs-direct X-Git-Tag: v0.99.9~88 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e175768954816b00bbbba131ec1c411d2cd66582;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-cvsimport.perl b/git-cvsimport.perl index 0621dc3e2..bbb83fb71 100755 --- a/git-cvsimport.perl +++ b/git-cvsimport.perl @@ -487,7 +487,7 @@ unless($pid) { my @opt; @opt = split(/,/,$opt_p) if defined $opt_p; unshift @opt, '-z', $opt_z if defined $opt_z; - unless ($opt_p =~ m/--no-cvs-direct/) { + unless (defined($opt_p) && $opt_p =~ m/--no-cvs-direct/) { push @opt, '--cvs-direct'; } exec("cvsps",@opt,"-u","-A",'--root',$opt_d,$cvs_tree);