summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acfcb8d)
raw | patch | inline | side by side (parent: acfcb8d)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Wed, 19 Oct 2005 07:01:02 +0000 (00:01 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 19 Oct 2005 07:01:02 +0000 (00:01 -0700) |
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>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsimport.perl | patch | blob | history |
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index f7c3a515936ac33320c1df3a5f2db71cf3ae3a92..f00f7596b75753c23a8b9dd6092b1a7d8b72835e 100755 (executable)
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
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);