svn import: make -s option actually optional
The -s option was accidentally not optional. Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
Matthias Urlichs committed
Oct 11, 2005 at 16:22 UTC
2fa92046a8ae8548a8dff15abbf730506d49009e
1 file changed
+2
-1
git-svnimport.perl
+2
-1
@@ -53,6 +53,7 @@ my $branch_name = $opt_b || "branches";
53
@ARGV <= 1 or usage();
54
55
$opt_o ||= "origin";
56
+$opt_s ||= 1;
57
$opt_l = 100 unless defined $opt_l;
58
my $git_tree = $opt_C;
59
$git_tree ||= ".";
@@ -193,7 +194,7 @@ $ENV{GIT_INDEX_FILE} = $git_index;
194
my $maxnum = 0;
195
my $last_rev = "";
196
my $last_branch;
196
-my $current_rev = $opt_s ? ($opt_s-1) : 0;
197
+my $current_rev = $opt_s-1;
198
unless(-d $git_dir) {
199
system("git-init-db");
200
die "Cannot init the GIT db at $git_tree: $?\n" if $?;