X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=environment.c;h=0bee6a7a88299f8c89eedeee25cece1d3cdafef0;hb=bd193f46b70fd3f8a55e2a8dcbb1fb2b4eec13d6;hp=d60b73f6a5a88632a2a36140bf719484adec9f39;hpb=01e0f162a70f61de0b7aa0e9d8c49c03cbafeb64;p=git.git diff --git a/environment.c b/environment.c index d60b73f6a..0bee6a7a8 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_ref_format(buf.buf) != CHECK_REF_FORMAT_OK) + if (check_refname_format(buf.buf, 0)) die("bad git namespace path \"%s\"", raw_namespace); strbuf_addch(&buf, '/'); return strbuf_detach(&buf, NULL);