Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clone fails on MS Windows because of invalid file names within the respository #4

Open
ahzf opened this issue Jun 17, 2024 · 0 comments

Comments

@ahzf
Copy link

ahzf commented Jun 17, 2024

MS Windows:

$ git clone  https://github.com/EVerest/logfiles.git
Cloning into 'logfiles'...
remote: Enumerating objects: 464, done.
remote: Counting objects: 100% (114/114), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 464 (delta 40), reused 83 (delta 17), pack-reused 350
Receiving objects: 100% (464/464), 35.51 MiB | 17.35 MiB/s, done.
Resolving deltas: 100% (173/173), done.
error: invalid path 'BMW/i4/2023-04-03T10:34:39.369Z-BMW-i4-din-spec/ethernet-traffic.dump'
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 :/'

Linux:

$ git clone https://github.com/EVerest/logfiles.git
Cloning into 'logfiles'...
remote: Enumerating objects: 464, done.
remote: Counting objects: 100% (114/114), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 464 (delta 40), reused 83 (delta 17), pack-reused 350
Receiving objects: 100% (464/464), 35.51 MiB | 17.23 MiB/s, done.
Resolving deltas: 100% (173/173), done.

My guess is, that Windows filenames cannot contain certain characters, including : (colon). The timestamp "2023-04-03T10:34:39.369Z" includes a : which is valid in Unix-like systems but not in Windows file names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant