Change check_ref_format() to take a flags argument
[git/git.git] / builtin / show-ref.c
index 45f0340..fafb6dd 100644 (file)
@@ -145,7 +145,7 @@ static int exclude_existing(const char *match)
                        if (strncmp(ref, match, matchlen))
                                continue;
                }
                        if (strncmp(ref, match, matchlen))
                                continue;
                }
-               if (check_ref_format(ref)) {
+               if (check_refname_format(ref, 0)) {
                        warning("ref '%s' ignored", ref);
                        continue;
                }
                        warning("ref '%s' ignored", ref);
                        continue;
                }