Browse Source

Improve receive-pack error message about funny ref creation

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>
maint
Joakim Tjernlund 18 years ago committed by Shawn O. Pearce
parent
commit
0b8293f677
  1. 2
      receive-pack.c

2
receive-pack.c

@ -166,7 +166,7 @@ static const char *update(struct command *cmd) @@ -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";
}


Loading…
Cancel
Save