git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
YSYaacov Akiba Slama <ya@slamail.org>
Date
Nov 2, 2005, 21:51 UTC
Message-ID
<E1EXQWT-00050C-Td@localhost.localdomain>
---
 git-svnimport.perl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

applies-to: d711bb120e7c95914069cff4996ddbcfc29c20f6 e5d8e159e80ead8eef0867a3662a83b3948aaa18

diff --git a/git-svnimport.perl b/git-svnimport.perl
index 83b70f9..ea5bbdb 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 "";
---
0.99.9.GIT
Message 1 of 1 in “Don't output error when there are changes in the nodes /, /tags or /branches”
  1. 3/7 Don't output error when there are changes in the nodes /, /tags or /branchesYaacov Akiba Slama, Nov 2, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.