firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.03k stars 115 forks source link

Could not checkout origin/master: invalid path #1279

Open PavelA85 opened 2 days ago

PavelA85 commented 2 days ago

I’m unable to checkout this repo on my Windows machine. I get an error message:

Could not checkout origin/master
invalid path 'tests/test-cases/rules-changes/.gitlab-ci-rules:changes:paths.yml'

Windows doesn’t allow : character in a file name :(

firecow commented 1 day ago

What terminal are you using? Have you tried gitbash ?

PavelA85 commented 1 day ago

I was using cmder. here is gitbash output:

$ gh repo clone firecow/gitlab-ci-local
Cloning into 'gitlab-ci-local'...
remote: Enumerating objects: 12555, done.
remote: Counting objects: 100% (930/930), done.
remote: Compressing objects: 100% (498/498), done.
remote: Total 12555 (delta 548), reused 725 (delta 409), pack-reused 11625
Receiving objects: 100% (12555/12555), 382.36 MiB | 9.94 MiB/s, done.
Resolving deltas: 100% (7867/7867), done.
error: invalid path 'tests/test-cases/rules-changes/.gitlab-ci-rules:changes:paths.yml'
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 :/'

You can not create file/folder with special characters: image