Currently, I want to import an svn repo onto my local disk. This takes a day and a half on WSL using the standard git-svn command.
However, when I try and copy this to windows (/mnt/c), it copies it, but fails for three files with: can't copy file, file already exists. This I believe is probably due to the case-insensitive nature of windows.
I have tried several times to use git-svn on windows unsuccessfully. It takes much longer and always crashes in strange way, such that re-running git svn fetch no longer works (often complaining about .lock files existing, which sometimes can be fixed by deleting them) or memory leaking.
Is there a way to make git-svn fetch a case-insensitive repo in WSL?
Your SVN repo contains files that differ only in case. Therefore, when Git checks out those files on a case-sensitive file system, it has two files with different contents. When you copy that to an NTFS drive, you can't represent both of those files.
You can try copying the repository with cp -fR
in an attempt to overwrite the files that already exist, but your Git repository will always show some files as modified.
You can also try setting your destination directory as case-sensitive on NTFS, which will allow your copy to work as expected.