зеркало из https://github.com/microsoft/git.git
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:
Родитель
2005dbe2a4
Коммит
0b8293f677
|
@ -166,7 +166,7 @@ static const char *update(struct command *cmd)
|
||||||
struct ref_lock *lock;
|
struct ref_lock *lock;
|
||||||
|
|
||||||
if (!prefixcmp(name, "refs/") && check_ref_format(name + 5)) {
|
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";
|
return "funny refname";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче