We currently have a problem in one of our projects where Stash (Atlassian's git) is pathing certain files to the source
folder (lowercase) while everything else is under Source
(capital). The latter is the correct folder.
When we pull the source from the remote repo, there is only ever one folder. This makes sense because we are working on Windows machines and the OS will prevent two folders that differ only by case. Unfortunately, when we attempt to merge branches, files in the lowercase path are perceived as deleted so the merge tool (Visual Studio) attempts to delete them. One of them is a .csproj file so you can imagine the harm this does!
We cannot figure out how this happened nor can we figure out how to undo it so all files are pathed correctly. As a result, every time we think we have it fixed, it happens again.
Any ideas what caused it and what we can do to resolve?