Commits

Yaacov Akiba Slama  committed c2c07a5

Don't output error on changes in the nodes /, /tags or /branches

Signed-off-by: Junio C Hamano <junkio@cox.net>

  • Participants
  • Parent commits cbce5d8

Comments (0)

Files changed (1)

File git-svnimport.perl

 	} 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 "";