From a7cfb4a43fce841cd673057cf4137f85e6f804eb Mon Sep 17 00:00:00 2001 From: Anand Kumria Date: Sun, 26 Mar 2006 09:43:46 +1100 Subject: [PATCH] git-svnimport: if a limit is specified, respect it git-svnimport will import the same revision over and over again if a limit (-l ) has been specified. Instead if that revision has already been processed, exit with an up-to-date message. Signed-off-by: Anand Kumria Signed-off-by: Junio C Hamano --- git-svnimport.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-svnimport.perl b/git-svnimport.perl index 639aa4186..114784ff3 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -851,7 +851,7 @@ sub commit_all { $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; -- 2.26.2