Merge branch 'ly/mktree-using-strbuf'
[gitweb.git] / builtin / fetch-pack.c
index c8bf9b85b07690dce8af5e093e02994ae5c510be..c6bc8eb0aa6f5a6bc35c69e7893118a17813db7d 100644 (file)
@@ -546,7 +546,7 @@ static void filter_refs(struct ref **refs, int nr_match, char **match)
        for (ref = *refs; ref; ref = next) {
                next = ref->next;
                if (!memcmp(ref->name, "refs/", 5) &&
-                   check_ref_format(ref->name + 5))
+                   check_refname_format(ref->name + 5, 0))
                        ; /* trash */
                else if (args.fetch_all &&
                         (!args.depth || prefixcmp(ref->name, "refs/tags/") )) {