Don't output error on changes in the nodes /, /tags or /branches
Signed-off-by: Junio C Hamano <junkio@cox.net>
Yaacov Akiba Slama committed
Nov 2, 2005 at 23:51 UTC
c2c07a5c2adf2aebc19b04a608592489b156a8bb
1 file changed
+6
-1
git-svnimport.perl
+6
-1
@@ -336,7 +336,12 @@ sub split_path($$) {
336
} elsif($path =~ s#^/\Q$branch_name\E/([^/]+)/?##) {
337
$branch = $1;
338
} else {
339
- print STDERR "$rev: Unrecognized path: $path\n";
339
+ my %no_error = (
340
+ "/" => 1,
341
+ "/$tag_name" => 1,
342
+ "/$branch_name" => 1
343
+ );
344
+ print STDERR "$rev: Unrecognized path: $path\n" unless (defined $no_error{$path});
345
return ()
346
}
347
$path = "/" if $path eq "";