Improve receive-pack error message about funny ref creation
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Sat, 20 Oct 2007 19:31:46 +0000 (21:31 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Oct 2007 01:49:24 +0000 (21:49 -0400)
receive-pack is only executed remotely so when
reporting errors, say so.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
receive-pack.c

index d3c422be58c5ee1af7e75cf4186bc9bbfb19ec30..1521d0b2de77eaccf3db1ebf357fd7560b2de1b0 100644 (file)
@@ -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";
        }