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:
Joakim Tjernlund 2007-10-20 21:31:46 +02:00 коммит произвёл Shawn O. Pearce
Родитель 2005dbe2a4
Коммит 0b8293f677
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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";
}