While using an OpenProject managed repository one may encounter the following error:
fatal: detected dubious ownership in repository at '/var/db/openproject/git/myproject.git'
To add an exception for this directory, call:
git config --global --add safe.directory /var/db/openproject/git/myproject.git
To resolve this issue for every repository, create a new file at /etc/gitconfig
with the contents:
[safe]
directory = *