diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-06 11:42:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-06 11:42:52 -0700 |
commit | 4b1108eec79ffb35d651a2dd8277973ed3b5cc6b (patch) | |
tree | d9644d2402be271e4e3ee44f4446c8e4866194b1 /refs.c | |
parent | 48f36dcd7320d27a840e89fc2aa7ab11716951c6 (diff) | |
parent | f3738c1ce9193a4bf45ba1a3ea67d0cf32da0257 (diff) | |
download | git-4b1108eec79ffb35d651a2dd8277973ed3b5cc6b.tar.gz |
Merge branch 'mh/check-ref-format-print-normalize'
* mh/check-ref-format-print-normalize:
Forbid DEL characters in reference names
check-ref-format --print: Normalize refnames that start with slashes
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |