Clone Error : Invalid Path due to File extension?

I’m trying to clone a repo that isn’t owned by me and encountered the following error

Resolving deltas: 100% (43808/43808), done.
error: invalid path 'ClientHealth_ClientHealthBenchmarkProcess_Cube_Migration.xml ’
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with ‘git status’
and retry with ‘git restore --source=HEAD :/’

Guessing that the file extension on the xml ends with a space and Windows doesn’t allow such a file to be created? The repo isn’t owned by me, so i can’t really edit the xml extension on the repo, is there anyway i can get around this? Thanks in advance

@nicholasongintel wrote:

The repo isn’t owned by me, so i can’t really edit the xml extension on the repo, is there anyway i can get

You might find the following useful:

Fixing Invalid Git Paths on Windows

https://brendanforster.com/notes/fixing-invalid-git-paths-on-windows/

The first part shows an easy way create a branch with the problem files removed.

I hope that helps!

Note that if you are using sparse-checkout on windows, you may need to add core.protectNTFS false per https://github.com/git-for-windows/git/issues/2777