Poetry: Fixing dubious ownership error
All notes in this series:
On a Python project using poetry, when running poetry build
I got the error:
Detected Git repository, but failed because of dubious ownership
Though Poetry raises the error, it actually originates from git. Similar “dubious ownership” errors are common with other tools and scenarios.
In my case, it was suitable to fix this by telling git the current directory is safe:
git config --global --add safe.directory $(pwd)