summaryrefslogtreecommitdiff
path: root/git-svnimport.perl
diff options
context:
space:
mode:
authorAnand Kumria <wildfire@progsoc.org>2006-03-25 22:43:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-03-26 08:15:01 (GMT)
commita7cfb4a43fce841cd673057cf4137f85e6f804eb (patch)
tree624cba8087b17d9620729c93facace8c82ed9a77 /git-svnimport.perl
parent9086a18cb81f99fff943b36830396ac8c37c7e9f (diff)
downloadgit-a7cfb4a43fce841cd673057cf4137f85e6f804eb.zip
git-a7cfb4a43fce841cd673057cf4137f85e6f804eb.tar.gz
git-a7cfb4a43fce841cd673057cf4137f85e6f804eb.tar.bz2
git-svnimport: if a limit is specified, respect it
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>
Diffstat (limited to 'git-svnimport.perl')
-rwxr-xr-xgit-svnimport.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svnimport.perl b/git-svnimport.perl
index 639aa41..114784f 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;