threads / patch / 10398

patchFix receive-pack error msg.

Subject: [PATCH] Fix receive-pack error msg.

## tl;dr

One message between Oct 20, 2007 and Oct 20, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Joakim Tjernlund· Oct 20, 2007, 19:31 UTC · lore

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(-)
Show changes to receive-pack.c +1 −1
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

← back to recent threads