I’ve never actually seen this issue on Linux. It’s a git issue where the repository git directory was created with one user and then another user is attempting to use the directory in PSU.
An issue should probably be raised for this since I have seen this before. Adding some sort of tool to provide the configuration necessary would be good. I don’t think PSU should do it automatically since it would break the security put in place in git.