Junio C Hamano <junkio@xxxxxxx> writes: > ... I suspect that this sequence may not work as > expected: > > #!/bin/sh > > pathname='a pathname that canonicalize differently from original' > rm -fr testrepo > mkdir testrepo > cd testrepo > git init-db > echo hello >"$pathname" > git add -f . > git ls-files -s "$pathname" Addendum. This is not to make any point but purely for my own education, but I wonder what would happen on HFS+ to the following sequence, which does not involve any git operation: #!/bin/sh LANG=C LC_ALL=C export LANG LC_ALL pathname='a pathname that canonicalize differently from original' rm -fr testrepo mkdir testrepo cd testrepo echo hello >"$pathname" /bin/ls | fgrep -e "$pathname" Doesn't the grep fail to find the file that was successfully created in the previous step? - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html