firecow / gitlab-ci-local

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

Can not checkout this repo in gitbash #1412

Closed ahoehma closed 2 weeks ago

ahoehma commented 2 weeks ago

I try to clone the repo but got a checkout error. Hmm..

$git clone https://github.com/firecow/gitlab-ci-local.git
Cloning into 'gitlab-ci-local'...
remote: Enumerating objects: 13225, done.
remote: Counting objects: 100% (3377/3377), done.
remote: Compressing objects: 100% (561/561), done.
remote: Total 13225 (delta 3109), reused 2914 (delta 2809), pack-reused 9848 (from 1)
Receiving objects: 100% (13225/13225), 382.63 MiB | 15.45 MiB/s, done.
Resolving deltas: 100% (8505/8505), 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 :/'

$git -v git version 2.47.0.windows.2

ANGkeith commented 2 weeks ago

argh.. not sure but maybe path issue here?

error: invalid path 'tests/test-cases/rules-changes/.gitlab-ci-rules:changes:paths.yml'

don't really have a windows machine to investigate ..

ahoehma commented 2 weeks ago

I never had such an error before :-) But I can start googling little bit.

ahoehma commented 2 weeks ago

@ANGkeith I found same issue here in the prohect:

https://github.com/firecow/gitlab-ci-local/issues/1279

it's the ":" in the name of

tests/test-cases/rules-changes/.gitlab-ci-rules:changes:paths.yml

this is not possible under windows.

ANGkeith commented 2 weeks ago

closing since it's duplicate of #1279

nice, will create a quick mr to fix this