From: mhagger@alum.mit.edu Date: Wed, 19 Oct 2011 20:55:11 GMT Subject: [RFC 08/13] expand_namespace(): the refname is full, so use REFNAME_FULL option Message-ID: <1319057716-28094-9-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1319057716-28094-1-git-send-email-mhagger@alum.mit.edu> From: Michael Haggerty Signed-off-by: Michael Haggerty --- environment.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/environment.c b/environment.c index 0bee6a7..a6d6f04 100644 --- a/environment.c +++ b/environment.c @@ -107,7 +107,7 @@ static char *expand_namespace(const char *raw_namespace) if (strcmp((*c)->buf, "/") != 0) strbuf_addf(&buf, "refs/namespaces/%s", (*c)->buf); strbuf_list_free(components); - if (check_refname_format(buf.buf, 0)) + if (check_refname_format(buf.buf, REFNAME_FULL)) die("bad git namespace path \"%s\"", raw_namespace); strbuf_addch(&buf, '/'); return strbuf_detach(&buf, NULL); -- 1.7.7