adeelibr / deno-playground

deno playground repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Directories in repository have invalid characters for Windows

jhanley-com opened this issue · comments

Using the colon ':' character for directory names means that the repository cannot be cloned on Windows systems.

Example error:
error: invalid path 'chapter_1:oak/README.md'

Example command to reproduce:
git clone https://github.com/adeelibr/deno-playground.git

Command results:
Cloning into 'deno-playground'...
remote: Enumerating objects: 131, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 131 (delta 50), reused 110 (delta 30), pack-reused 0
Receiving objects: 100% (131/131), 4.52 MiB | 2.53 MiB/s, done.
Resolving deltas: 100% (50/50), done.
error: invalid path 'chapter_1:oak/README.md'
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 :/'

Yes you are right, sorry for the trouble mate @jhanley-com

I will be careful next time, for now the current solution would be to fork this repo and manually rename these 2 folders. :(
reference tutorial: https://stackoverflow.com/questions/56754563/error-cloning-a-repository-on-windows-due-to-invalid-chars-in-file-name