Sam Hooke

Poetry: Fixing dubious ownership error

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 $(pwd)

These are rough notes that vary greatly in quality and length, but prove useful to me, and hopefully to you too!

← Previous: Debugging missing UDP packets with Wireshark
Next: Poetry: example →