The following series complement the recently queued[0] RFC that adds the missing functionality to allow git to validate a git repository while running under sudo. They could be squashed together if preferred, as they seem to be smaller that I had originally assumed and also unlikely to conflict. The test uses a function I stole from rs/t7812-pcre2-ws-bug-test that could be alternatively moved to a common location and reused if that is preferred, but it is small enough that might be as well be done as part of some cleanup later. Tried to change the documentation in a way that wouldn't conflict with other on the fly changes, but there is at least one pending change not in seen AFAIK in the same file from Gábor which might[1], but the resolution should be to take both sides. Carlo Marcelo Arenas Belón (2): Documentation: explain how safe.directory works when running under sudo t: add tests for safe.directory when running with sudo Documentation/config/safe.txt | 8 ++++++ t/t0034-root-safe-directory.sh | 51 ++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100755 t/t0034-root-safe-directory.sh [0] https://lore.kernel.org/git/xmqqilqujgvs.fsf@gitster.g/ [1] https://lore.kernel.org/git/xmqqee1il09v.fsf@gitster.g/ -- 2.36.0.266.g59f845bde02