Re: [PATCH v2 3/3] safe.directory: setting safe.directory="." allows the "current" directory
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 25, 2024, 16:12 UTC
- Message-ID
- <xmqq7cd9jvsd.fsf@gitster.g>
- In-Reply-To
- <ecfd53a7-645b-4e8b-a1e7-17ee5c782ad4@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 13 quoted lines
> 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?