Closed alexeytarasovpa closed 5 months ago
Thanks for the bug report. I have a fix on the way, which is basically what you suggested with git config --global --add safe.directory '*'
. It does cause issues though when running a step with a specific user so I'll have to fix that. I should be able to release a fix tomorrow.
I've pushed the fix, it will be available in version 0.4.3 which will be released in a few minutes.
Trouble: fatal: detected dubious ownership in repository at '/opt/atlassian/workspace/.git'
while run pipeline.
This happens probably because of mismatch user uid files of got repo with user uid inside container in new version of git inside alpine/git docker image. Fix https://github.com/mathieu-lemay/pipeline-runner/blob/2863fc56f82c1eabc125f7102167758a573c8d1e/pipeline_runner/repository.py#L44 by "alpine/git:2.40.1" hardcode solves this. Also can help https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-reposit run "git config --global --add safe.directory '*'" inside container.
Thank you for great tool.