Posts Tagged ‘mac git mountainlion’

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.

diskutility

Advertisements