Skip to content

Commit

Permalink
Improve receive-pack error message about funny ref creation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joakim Tjernlund authored and Shawn O. Pearce committed Oct 21, 2007
1 parent 2005dbe commit 0b8293f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receive-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 0b8293f

Please sign in to comment.