From c2c07a5c2adf2aebc19b04a608592489b156a8bb Mon Sep 17 00:00:00 2001 From: Yaacov Akiba Slama Date: Wed, 2 Nov 2005 23:51:57 +0200 Subject: [PATCH] Don't output error on changes in the nodes /, /tags or /branches Signed-off-by: Junio C Hamano --- git-svnimport.perl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/git-svnimport.perl b/git-svnimport.perl index 83b70f9b..ea5bbdb8 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -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 ""; -- 2.11.0