Categories
Development

Case Sensitivity on Git for Macs

Today I ran into an issue with git and case sensitivity on Macs. Although Macs preserve case, their filesystems is case insensitive.


So something like:

themes/ODOC/odoc.info

is equivalent to:

themes/odoc/odoc.info

However, they are completely different when deployed to a linux server. Therefore it completely ignored any attempt to change the case and Drupal was actually using “themes/ODOC” instead of the correct “themes/odoc”. If you ever run into this issue, I found this blog entry to be extremely valuable:

http://tapestryjava.blogspot.com/2010/07/git-on-mac-os-x-dont-ignore-case.html