contrib/git-svn: fix a harmless warning on rebuild (with old repos)
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>
Eric Wong committed
Mar 9, 2006 at 03:52 UTC
779b14462523616cf84ea96690a983605fec2cdc
1 file changed
+1
-1
contrib/git-svn/git-svn.perl
+1
-1
@@ -155,7 +155,7 @@ sub rebuild {
155
# if we merged or otherwise started elsewhere, this is
156
# how we break out of it
157
next if (defined $SVN_UUID && ($uuid ne $SVN_UUID));
158
- next if (defined $SVN_URL && ($url ne $SVN_URL));
158
+ next if (defined $SVN_URL && defined $url && ($url ne $SVN_URL));
159
160
print "r$rev = $c\n";
161
unless (defined $latest) {