See also T325128: git: detected dubious ownership in repository at '/srv/mediawiki-staging'
krinkle@codesearch8:/srv/codesearch$ git log fatal: detected dubious ownership in repository at '/srv/codesearch' To add an exception for this directory, call: git config --global --add safe.directory /srv/codesearch krinkle@codesearch8:/srv/codesearch$ ll total 192K drwxr-xr-x 8 codesearch codesearch 4.0K Dec 14 21:06 ./ drwxr-xr-x 5 root root 4.0K Apr 9 2021 ../ -rw-r--r-- 1 codesearch codesearch 249 Oct 8 02:36 .editorconfig drwxr-xr-x 8 codesearch codesearch 4.0K Dec 14 22:06 .git/ drwxr-xr-x 6 codesearch codesearch 4.0K Oct 8 02:55 frontend/ drwxr-xr-x 2 codesearch codesearch 4.0K May 20 2021 hound/ -rwxr-xr-x 1 codesearch codesearch 436 Apr 9 2021 manage.sh* -rw-r--r-- 1 codesearch codesearch 192 Mar 11 2022 requirements.txt ..