threads / patch / 3608

patchcontrib/git-svn: fix a harmless warning on rebuild (with old repos)

Subject: [PATCH] contrib/git-svn: fix a harmless warning on rebuild (with old repos)

## tl;dr

One message between Mar 9, 2006 and Mar 9, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Eric Wong· Mar 9, 2006, 11:52 UTC · lore

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>
---
 contrib/git-svn/git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
3c3753ad761d1802cc79418ae337ee4a3110a109
Show changes to contrib/git-svn/git-svn.perl +1 −1
diff --git a/contrib/git-svn/git-svn.perl b/contrib/git-svn/git-svn.perl
index 43b50ec..cf233ef 100755
--- a/contrib/git-svn/git-svn.perl
+++ b/contrib/git-svn/git-svn.perl
@@ -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) {
-- 
1.2.4.ga2910

← back to recent threads