read-cache: optionally disallow HFS+ .git variants
[gitweb.git] / t / test-lib.sh
index b25249ec4cc2844f5cd7491dd5fcc88c884ff450..d4569f8df0506f15ec4a836e0363df34d9cbd2ba 100644 (file)
@@ -154,7 +154,11 @@ _z40=0000000000000000000000000000000000000000
 LF='
 '
 
-export _x05 _x40 _z40 LF
+# UTF-8 ZERO WIDTH NON-JOINER, which HFS+ ignores
+# when case-folding filenames
+u200c=$(printf '\342\200\214')
+
+export _x05 _x40 _z40 LF u200c
 
 # Each test should start with something like this, after copyright notices:
 #