summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-10-19 00:01:02 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-19 00:01:02 -0700
commit750a09a7de63c92868cff41a3151eac320c77fa0 (patch)
tree0c90b9d6e7eb046bfce8afce210b32097b161ebe
parentDo not ask for objects known to be complete. (diff)
downloadgit-750a09a7de63c92868cff41a3151eac320c77fa0.tar.gz
git-750a09a7de63c92868cff41a3151eac320c77fa0.zip
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>
Diffstat (limited to '')
-rwxr-xr-xgit-cvsimport.perl2
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);