Merge branch 'cb/path-owner-check-with-sudo'
commitb779214eafe7fa6933524737f166ecca99bdf468
authorJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 21:51:32 +0000 (26 14:51 -0700)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 23 Jun 2022 10:31:04 +0000 (23 12:31 +0200)
tree54aeed97455b485cb22328e34d773e9794f10698
parent17083c79ae842b51d82518e2efe5281346acea0e
parent6b11e3d52e919cce91011f4f9025e6f4b61375f2
Merge branch 'cb/path-owner-check-with-sudo'

With a recent update to refuse access to repositories of other
people by default, "sudo make install" and "sudo git describe"
stopped working.  This series intends to loosen it while keeping
the safety.

* cb/path-owner-check-with-sudo:
  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

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>