After upgrading bitbucket from 7 to 8.8.2 we are seeing the following error:
git cat-file -t refs/heads/master:' exited with code 128 saying: fatal: detected dubious ownership in repository at '/data/repositories/1' To add an exception for this directory, call: git config --global --add safe.directory /data/repositories/1
We still see the error even after adding the safe.directory.
# git config --global --list
safe.directory=/data/repositories/1
safe.directory=*