summaryrefslogtreecommitdiff
path: root/git-svnimport.perl
diff options
context:
space:
mode:
authorMatthias Urlichs <smurf@smurf.noris.de>2005-10-11 16:22:03 +0200
committerMatthias Urlichs <smurf@smurf.noris.de>2005-10-11 16:22:03 +0200
commit2fa92046a8ae8548a8dff15abbf730506d49009e (patch)
tree6a035a34d647e88b46bdb665fc645a321a8f31f9 /git-svnimport.perl
parent16e685967d638fd50860fa24bd5f2d06ab4f8e96 (diff)
downloadgit-2fa92046a8ae8548a8dff15abbf730506d49009e.tar.gz
svn import: make -s option actually optional
The -s option was accidentally not optional. Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
Diffstat (limited to 'git-svnimport.perl')
-rwxr-xr-xgit-svnimport.perl3
1 files changed, 2 insertions, 1 deletions
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 @@ my $branch_name = $opt_b || "branches";
@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 @@ $ENV{GIT_INDEX_FILE} = $git_index;
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 $?;