Fix compile with expat, but an old curl version
[gitweb.git] / git-svnimport.perl
index 639aa41861a734aab225479be7524c972191da70..114784ff3e2fd7329dfb1eb48470bbfc0e5fd862 100755 (executable)
@@ -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;