Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ld/p4-changes-block-size'
[gitweb.git]
/
builtin
/
for-each-ref.c
diff --git
a/builtin/for-each-ref.c
b/builtin/for-each-ref.c
index f7e51a7fadc40b1e4484a657fc55af8a3043967c..cb7db230d3ef76ee6a8b73971cbdabcc6d6590a9 100644
(file)
--- a/
builtin/for-each-ref.c
+++ b/
builtin/for-each-ref.c
@@
-866,6
+866,11
@@
static int grab_single_ref(const char *refname, const struct object_id *oid,
return 0;
}
+ if (flag & REF_ISBROKEN) {
+ warning("ignoring broken ref %s", refname);
+ return 0;
+ }
+
if (*cb->grab_pattern) {
const char **pattern;
int namelen = strlen(refname);