summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9086a18)
raw | patch | inline | side by side (parent: 9086a18)
author | Anand Kumria <wildfire@progsoc.org> | |
Sat, 25 Mar 2006 22:43:46 +0000 (09:43 +1100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Mar 2006 08:15:01 +0000 (00:15 -0800) |
git-svnimport will import the same revision over and over again if a
limit (-l <rev>) has been specified. Instead if that revision has already
been processed, exit with an up-to-date message.
Signed-off-by: Anand Kumria <wildfire@progsoc.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
limit (-l <rev>) has been specified. Instead if that revision has already
been processed, exit with an up-to-date message.
Signed-off-by: Anand Kumria <wildfire@progsoc.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svnimport.perl | patch | blob | history |
diff --git a/git-svnimport.perl b/git-svnimport.perl
index 639aa41861a734aab225479be7524c972191da70..114784ff3e2fd7329dfb1eb48470bbfc0e5fd862 100755 (executable)
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
$opt_l = $svn->{'maxrev'} if not defined $opt_l or $opt_l > $svn->{'maxrev'};
-if ($svn->{'maxrev'} < $current_rev) {
+if ($opt_l < $current_rev) {
print "Up to date: no new revisions to fetch!\n" if $opt_v;
unlink("$git_dir/SVN2GIT_HEAD");
exit;