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

[PATCH] Fix receive-pack error msg.

From
JTJoakim Tjernlund <joakim.tjernlund@transmode.se>
Date
Oct 20, 2007, 19:31 UTC
Message-ID
<1192908706-13502-1-git-send-email-Joakim.Tjernlund@transmode.se>

receive-pack is only executed remotely so when reporting errors, say so.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 receive-pack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/receive-pack.c b/receive-pack.c
index d3c422b..1521d0b 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -166,7 +166,7 @@ static const char *update(struct command *cmd)
 	struct ref_lock *lock;
 
 	if (!prefixcmp(name, "refs/") && check_ref_format(name + 5)) {
-		error("refusing to create funny ref '%s' locally", name);
+		error("refusing to create funny ref '%s' remotely", name);
 		return "funny refname";
 	}
 
-- 
1.5.3.4
Message 1 of 1 in “Fix receive-pack error msg.”
  1. Fix receive-pack error msg.Joakim Tjernlund, Oct 20, 2007

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.