Subject: Re: [PATCH v3 5/5] setup: allow not marking self owned repos as safe in `ensure_safe_repository()`

From: Junio C Hamano <[email-masked]>
Date: Thu, 16 Oct 2025 12:58:39 -0700

Michael Lohmann <[email-masked]> writes:

> Git considers all repositories as safe, if they are either
>  - explicitly set in "safe.directory" config, or
>  - the user owns the repo

If you are going to reroll this step, please add a few more cases to
the list above.  There are other code paths in setup.c that does not
call ensure_valid_ownership().  Treating an explicitly specified git
directory as safe is one of them (there may or may not be others, I
didn't check).