-
-
Notifications
You must be signed in to change notification settings - Fork 54
Can not git clone on Windows #180
Copy link
Copy link
Closed
Description
When I try to git clone locally on Windows PC, an error occurs.
$ git clone https://github.com/gerbv/gerbv.git
Cloning into 'gerbv'...
remote: Enumerating objects: 11169, done.
remote: Counting objects: 100% (970/970), done.
remote: Compressing objects: 100% (408/408), done.
remote: Total 11169 (delta 556), reused 821 (delta 500), pack-reused 10199
Receiving objects: 100% (11169/11169), 20.75 MiB | 11.20 MiB/s, done.
Resolving deltas: 100% (7940/7940), done.
fatal: cannot create directory at '.mc/fedora:38': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
The reason is that the filepath (e.g. '.mc/fedora:38') contains a character that is not allowed on Windows.
According to https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names , the nine characters <, >, :, ", /, \, |, ? and * are prohibited to be included in the name.
The following six path names apply to this case:
.mc/ubuntu:22.04
.mc/ubuntu:22.04/ubuntu:22.04.yaml
.mc/fedora:38
.mc/fedora:38/fedora:38.yaml
.mc/windows:amd64
.mc/windows:amd64/windows:amd64.yaml
Is it possible to fix this issue for Windows users?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels