From: Junio C Hamano Date: Fri, 23 Jul 2021 01:59:01 GMT Subject: Re: [PATCH] setup: only die on invalid .git under RUN_SETUP Message-ID: In-Reply-To: <87mtqet5aw.fsf@evledraar.gmail.com> Ævar Arnfjörð Bjarmason writes: > I guess another easy alternative would be to issue a warning() in this > case, which is a relatively light refactoring of passing an error > message up from the relevant function(s) instead of having it die() > directly. I think the end users deserve a warning even when they are running ls-remote or bugreport in such a corrupt repository-lookalike. It might be sufficient to make "git diff [--no-index]" safe enough. Thanks.