Skip to contentSkip to conversation

Don't output error when there are changes in the nodes /, /tags or /branches

PATCH In review Yaacov Akiba Slama 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 Don't output error when there are changes in the nodes /, /tags or /branches

---

 git-svnimport.perl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

applies-to: d711bb120e7c95914069cff4996ddbcfc29c20f6 e5d8e159e80ead8eef0867a3662a83b3948aaa18

git-svnimport.perl +6 -1
index 83b70f9..ea5bbdb 100755
@@ -336,7 +336,12 @@ sub split_path($$) {
 	} elsif($path =~ s#^/\Q$branch_name\E/([^/]+)/?##) {
 		$branch = $1;
 	} else {
-		print STDERR "$rev: Unrecognized path: $path\n";
+		my %no_error = (
+			"/" => 1,
+			"/$tag_name" => 1,
+			"/$branch_name" => 1
+		);
+		print STDERR "$rev: Unrecognized path: $path\n" unless (defined $no_error{$path});
 		return ()
 	}
 	$path = "/" if $path eq "";

---
0.99.9.GIT