This is an FYI post because it was an issue for us.
In git 2.35, a new feature was added that checks if the user executing the git command is the owner of the git root directory and will fail if they don't match.
This feature seems to have found it way into version 2.26.2-87 somewhere between 2.26.2-84 and 2.26.2-87.
This feature can be disabled with
git config --global--add safe.directory '*'
There is a bunch of customizations to this command that might be relevant for you - read the
documentationYou can also read why the check was added -
setup_git_directory(): add an owner check for the top-level directory · git/git@8959555------------------------------
Adam Martin Britt
IT-Architect
BEC
Randers SV DK
------------------------------