contrib/git-svn: fix a harmless warning on rebuild (with old repos)
authorEric Wong <normalperson@yhbt.net>
Thu, 9 Mar 2006 11:52:48 +0000 (03:52 -0800)
committerJunio C Hamano <junkio@cox.net>
Thu, 9 Mar 2006 18:10:30 +0000 (10:10 -0800)
It's only for repositories that were imported with very early
versions of git-svn.  Unfortunately, some of those repos are out
in the wild already, so fix this warning.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/git-svn/git-svn.perl

index 43b50ecfb77c97f0c13d855b199425930db01e18..cf233ef6ed2a18534827f51fbfc35f5700dcd860 100755 (executable)
@@ -155,7 +155,7 @@ sub rebuild {
                # if we merged or otherwise started elsewhere, this is
                # how we break out of it
                next if (defined $SVN_UUID && ($uuid ne $SVN_UUID));
-               next if (defined $SVN_URL && ($url ne $SVN_URL));
+               next if (defined $SVN_URL && defined $url && ($url ne $SVN_URL));
 
                print "r$rev = $c\n";
                unless (defined $latest) {