'git status' failed with code 128: fatal: detected dubious ownership in repository 'DIRECTORY PATH'
I have executed the command
git config --global --add safe.directory 'DIRECTORY PATH'
The repository started working in the terminal, however, I'm still getting the error on Sourcetree UI.