From: Michael Haggerty <mhagger@xxxxxxxxxxxx> Replace local code with a use of check_refname_format()'s new REFNAME_FULL option. Signed-off-by: Michael Haggerty <mhagger@xxxxxxxxxxxx> --- builtin/receive-pack.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index 261b610..508451b 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -401,7 +401,7 @@ static const char *update(struct command *cmd) struct ref_lock *lock; /* only refs/... are allowed */ - if (prefixcmp(name, "refs/") || check_refname_format(name + 5, 0)) { + if (check_refname_format(name, REFNAME_FULL)) { rp_error("refusing to create funny ref '%s' remotely", name); return "funny refname"; } -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html