X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=refs.c;h=a615043b34cd6d0507d8a30f7bd69445ec9f2456;hb=0814d6e554c45636f41856cc2204abe2f661560c;hp=e5b2b1ac2bf535e931165ff1cb4691163c1843a2;hpb=4b5eac7f03f411f75087e0b6db23caa999624304;p=git.git diff --git a/refs.c b/refs.c index e5b2b1ac2..a615043b3 100644 --- a/refs.c +++ b/refs.c @@ -862,7 +862,7 @@ int for_each_rawref(each_ref_fn fn, void *cb_data) static inline int bad_ref_char(int ch) { - if (((unsigned) ch) <= ' ' || + if (((unsigned) ch) <= ' ' || ch == 0x7f || ch == '~' || ch == '^' || ch == ':' || ch == '\\') return 1; /* 2.13 Pattern Matching Notation */