Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-09-06 22:42:52 +0400
committerJunio C Hamano <gitster@pobox.com>2011-09-06 22:42:52 +0400
commit4b1108eec79ffb35d651a2dd8277973ed3b5cc6b (patch)
treed9644d2402be271e4e3ee44f4446c8e4866194b1 /refs.c
parent48f36dcd7320d27a840e89fc2aa7ab11716951c6 (diff)
parentf3738c1ce9193a4bf45ba1a3ea67d0cf32da0257 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index e5b2b1ac2b..a615043b34 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 */