summaryrefslogtreecommitdiff
path: root/ref-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'ref-filter.c')
-rw-r--r--ref-filter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ref-filter.c b/ref-filter.c
index 3fbbbeb..6e09da8 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -872,6 +872,11 @@ static int ref_filter_handler(const char *refname, const struct object_id *oid,
return 0;
}
+ if (flag & REF_ISBROKEN) {
+ warning("ignoring broken ref %s", refname);
+ return 0;
+ }
+
if (*filter->name_patterns && !match_name_as_path(filter->name_patterns, refname))
return 0;