superlinear-ai / poetry-cookiecutter

🍪 Poetry Cookiecutter is a modern Cookiecutter template for scaffolding Python packages and apps
GNU Affero General Public License v3.0
252 stars 37 forks source link

Fix git's `detected dubious ownership in repository` warning #186

Closed lsorber closed 5 months ago

lsorber commented 1 year ago

Problem description and solution: https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/

lukin0110 commented 11 months ago

I'd add this somewhere in the Dockerfile instead of in the devcontainer.json and use system instead of global:

RUN  git config --system --add safe.directory '*'

Reasons: