Mountain Lion + Git + Case Insensitive filesystem == headaches

Posted: March 26, 2013 in Uncategorized
Tags: , , ,

I learned this the hard way after upgrading to Mountain Lion and finding that the case insensitive filesystem was the default.  Though applications (IntelliJ, console, Finder) visually displayed to me my filenames with the characters in the case that they were created in, other applications (GIT) did not register that I had made a refactoring to the filename where the only change was the case.

What I ended up with was a git commit that included refactored classes that referenced the newly changed case in a filename, but my git commit did not pick up that the file itself had changed.  I scratched my head, said it works for me, puzzled why jenkins could not find the file when I clearly see it locally and it’s not being identified as a new change.

To get around this confusion for any development that I do, I created a partition just for my code repositories called “workspace”.  With Mountain Lion, you can run “Disk Utility” to partition your existing hard drive.  Define your new partition, use the “Mac OS Extended (Case-sensitive, Journaled)” format, and ensure that all code/development work is done on this case sensitive aware partition.

One less headache.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s