Sync with 2.31.4

* maint-2.31: Git 2.31.4 Git 2.30.5 setup: tighten ownership checks post CVE-2022-24765 git-compat-util: allow root to access both SUDO_UID and root owned t0034: add negative tests and allow git init to mostly work under sudo git-compat-util: avoid failing dir ownership checks if running privileged t: regression git needs safe.directory when using sudo

Johannes Schindelin committed Jun 23, 2022 at 12:35 UTC fc0c773028685cdbae35c6c71f3fd3b87ab70985

No changes.