Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can SVN handle case sensitivity issues?

Is there a way to force SVN to be case insensitive? We have an issue where a user commits from a linux environment with files say "file.ext" and "File.ext". Works just fine. The problem, however, is when a user on a MAC OSX or Windows attempts an update/checkout. The two files are considered the same and the action fails in error.

Is there a way to have SVN prevent the committing of "File.ext" and "file.ext" in the first place?

This question is similar but looks at the same problem from the Windows side, which is not the issue here.

like image 804
ccook Avatar asked Feb 27 '09 14:02

ccook


2 Answers

You could try a pre-commit hook, such as this one (didn't try it myself, however).

I assume that getting your users watch out for it has already been ruled out? I work on Linux all the time, but typically consider filenames case-insensitive, i. e. to me, they are the same, no matter what the OS thinks.

like image 193
Hanno Fietz Avatar answered Sep 28 '22 07:09

Hanno Fietz


Subversion 1.7 now appears to handle case only renames on Windows.

like image 26
jpierson Avatar answered Sep 28 '22 07:09

jpierson