Subject: Re: [PATCH 12/12] Revert "fetch/clone: detect dubious ownership of local repositories"

From: Junio C Hamano <[email-masked]>
Date: Tue, 21 May 2024 13:43:11 -0700

Junio C Hamano <[email-masked]> writes:

> This partially reverts f4aa8c8b (fetch/clone: detect dubious
> ownership of local repositories, 2024-04-10) that broke typical
> read-only use cases (e.g. by git-daemon serving fetches and clones)
> where "nobody" who has no write permission serves repositories owned
> by others.  The function to die upon seeing dubious ownership is
> still kept, as there are other users of it, but calls to it from the
> generic repository discovery code path, which triggered in cases far
> wider than originally intended (i.e. to stop local clones), have
> been removed.
>
> Signed-off-by: Junio C Hamano <[email-masked]>
> ---

I am inclined to propose dropping this step, actually.

cf. https://lore.kernel.org/git/[email-masked]/