From: Matthias Urlichs Date: Tue, 11 Oct 2005 14:22:03 +0000 (+0200) Subject: svn import: make -s option actually optional X-Git-Tag: v0.99.9~112^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2fa92046a8ae8548a8dff15abbf730506d49009e?hp=--cc svn import: make -s option actually optional The -s option was accidentally not optional. Signed-Off-By: Matthias Urlichs --- 2fa92046a8ae8548a8dff15abbf730506d49009e diff --git a/git-svnimport.perl b/git-svnimport.perl index 821f51f105..0462c31f7e 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -53,6 +53,7 @@ END @ARGV <= 1 or usage(); $opt_o ||= "origin"; +$opt_s ||= 1; $opt_l = 100 unless defined $opt_l; my $git_tree = $opt_C; $git_tree ||= "."; @@ -193,7 +194,7 @@ ($$) my $maxnum = 0; my $last_rev = ""; my $last_branch; -my $current_rev = $opt_s ? ($opt_s-1) : 0; +my $current_rev = $opt_s-1; unless(-d $git_dir) { system("git-init-db"); die "Cannot init the GIT db at $git_tree: $?\n" if $?;