Git Error: Filename too long … Clone succeeded, but checkout failed.

Git has a limit of 4096 characters for a filename, except on Windows when Git is compiled with msys. It uses an older version of the Windows…