summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 16e6859)
raw | patch | inline | side by side (parent: 16e6859)
author | Matthias Urlichs <smurf@smurf.noris.de> | |
Tue, 11 Oct 2005 14:22:03 +0000 (16:22 +0200) | ||
committer | Matthias Urlichs <smurf@smurf.noris.de> | |
Tue, 11 Oct 2005 14:22:03 +0000 (16:22 +0200) |
The -s option was accidentally not optional.
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
git-svnimport.perl | patch | blob | history |
diff --git a/git-svnimport.perl b/git-svnimport.perl
index 821f51f105903c5241dcf8a55092dc6ed3fc76b3..0462c31f7ec56ebc950112517480a9db73503013 100755 (executable)
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@ARGV <= 1 or usage();
$opt_o ||= "origin";
+$opt_s ||= 1;
$opt_l = 100 unless defined $opt_l;
my $git_tree = $opt_C;
$git_tree ||= ".";
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 $?;