diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-21 00:01:00 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-21 00:01:00 -0800 |
commit | c2f3bf071ee90b01f2d629921bb04c4f798f02fa (patch) | |
tree | 08ffe5b40e062d596deee47f3869278f4661a858 /git-svnimport.perl | |
parent | 1ed91937e5cd59fdbdfa5f15f6fac132d2b21ce0 (diff) | |
parent | 41f93a2c903a45167b26c2dc93d45ffa9a9bbd49 (diff) |
GIT 1.0.0v1.0.0
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-svnimport.perl')
-rwxr-xr-x | git-svnimport.perl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-svnimport.perl b/git-svnimport.perl index 65868a91e5..cb241d1b51 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -736,6 +736,13 @@ sub commit_all { } $opt_l = $svn->{'maxrev'} if not defined $opt_l or $opt_l > $svn->{'maxrev'}; + +if ($svn->{'maxrev'} < $current_rev) { + print "Up to date: no new revisions to fetch!\n" if $opt_v; + unlink("$git_dir/SVN2GIT_HEAD"); + exit; +} + print "Fetching from $current_rev to $opt_l ...\n" if $opt_v; my $pool=SVN::Pool->new; |