mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
2005dbe2a4
commit
0b8293f677
|
@ -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…
Reference in a new issue