mdubourg001 / glci

🦊 Test your Gitlab CI Pipelines changes locally using Docker.
568 stars 17 forks source link

Running git commands fail #4

Closed frwickst closed 3 years ago

frwickst commented 3 years ago

When running in GitLab CI the folder that you gets put in when running scripts is a Git repository. This means that for instance if you want to handle things like fetching submodules yourself, then you can do that. However, with glci it seems like that is not the case and the .git folder does not exist at all. This causes git commands such as git submodule update --init --recursive to fail.

The error, as expected is:

fatal: not a git repository (or any of the parent directories): .git
mdubourg001 commented 3 years ago

Thanks for reporting this, the .git directory was indeed not added to container project files. Should be fixed in https://github.com/mdubourg001/glci/releases/tag/v0.1.0.