Can SVN handle case sensitivity issues?

前端 未结 4 1407
-上瘾入骨i
-上瘾入骨i 2021-01-04 10:52

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

4条回答
  •  春和景丽
    2021-01-04 11:30

    I think the technical problem really is on the Mac & Windows side, namely that their file systems aren't case-sensitive. At least on the mac, you can re-format the file system as HFS+ with case-sensitivity turned on. I'm not a Windows user but there may be a similar option in Windows' native file system (is it still NTFS?).

    If you don't control the developer's environments enough to force them to format with a case-sensitive file system, then I think your only options are a pre-commit hook that checks for duplicate (case-insensitive comparison, obviously) file names in the same directory or to modify your project to not use files with the same name and different case in the same directory.

提交回复
热议问题