Subject: Re: [PATCH v2 3/3] safe.directory: setting safe.directory="." allows the "current" directory

From: Junio C Hamano <[email-masked]>
Date: Thu, 25 Jul 2024 09:12:02 -0700

Phillip Wood <[email-masked]> writes:

> Hi Junio
>
> On 23/07/2024 03:19, Junio C Hamano wrote:
>> When "git daemon" enters a repository, it chdir's to the requested
>> repository and then uses "." (the curent directory) to consult the
>> "is this repository considered safe?" when it is not owned by the
>> same owner as the process.
>> Make sure this access will be allowed by setting safe.directory to
>> ".".
>
> Setting safe.directory to "." should be unnecessary after the previous
> two patches. It might be better to test that "git daemon" works
> without safe.directory containing "." instead.

Hmph.  Even without the two previous steps, it was a working
workaround, wasn't it?