diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2005-10-19 11:01:02 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-19 11:01:02 +0400 |
commit | 750a09a7de63c92868cff41a3151eac320c77fa0 (patch) | |
tree | 0c90b9d6e7eb046bfce8afce210b32097b161ebe | |
parent | acfcb8dfa451bf9701fdba72c7b6fb9b591a6890 (diff) |
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>
-rwxr-xr-x | git-cvsimport.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl index f7c3a51593..f00f7596b7 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); |