diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c
index c8bf9b85b07690dce8af5e093e02994ae5c510be..c6bc8eb0aa6f5a6bc35c69e7893118a17813db7d 100644 (file)
--- a/builtin/fetch-pack.c
+++ b/builtin/fetch-pack.c
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/") )) {