svn import: make -s option actually optional
The -s option was accidentally not optional. Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
This commit is contained in:
parent
16e685967d
commit
2fa92046a8
@ -53,6 +53,7 @@ my $branch_name = $opt_b || "branches";
|
|||||||
@ARGV <= 1 or usage();
|
@ARGV <= 1 or usage();
|
||||||
|
|
||||||
$opt_o ||= "origin";
|
$opt_o ||= "origin";
|
||||||
|
$opt_s ||= 1;
|
||||||
$opt_l = 100 unless defined $opt_l;
|
$opt_l = 100 unless defined $opt_l;
|
||||||
my $git_tree = $opt_C;
|
my $git_tree = $opt_C;
|
||||||
$git_tree ||= ".";
|
$git_tree ||= ".";
|
||||||
@ -193,7 +194,7 @@ $ENV{GIT_INDEX_FILE} = $git_index;
|
|||||||
my $maxnum = 0;
|
my $maxnum = 0;
|
||||||
my $last_rev = "";
|
my $last_rev = "";
|
||||||
my $last_branch;
|
my $last_branch;
|
||||||
my $current_rev = $opt_s ? ($opt_s-1) : 0;
|
my $current_rev = $opt_s-1;
|
||||||
unless(-d $git_dir) {
|
unless(-d $git_dir) {
|
||||||
system("git-init-db");
|
system("git-init-db");
|
||||||
die "Cannot init the GIT db at $git_tree: $?\n" if $?;
|
die "Cannot init the GIT db at $git_tree: $?\n" if $?;
|
||||||
|
Loading…
Reference in New Issue
Block a user