Change check_ref_format() to take a flags argument
[git/git.git] / builtin / receive-pack.c
index ae164da..0600efa 100644 (file)
@@ -356,7 +356,7 @@ static const char *update(struct command *cmd)
        struct ref_lock *lock;
 
        /* only refs/... are allowed */
        struct ref_lock *lock;
 
        /* only refs/... are allowed */
-       if (prefixcmp(name, "refs/") || check_ref_format(name + 5)) {
+       if (prefixcmp(name, "refs/") || check_refname_format(name + 5, 0)) {
                rp_error("refusing to create funny ref '%s' remotely", name);
                return "funny refname";
        }
                rp_error("refusing to create funny ref '%s' remotely", name);
                return "funny refname";
        }