Re: [PATCH] setup: only die on invalid .git under RUN_SETUP
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 23, 2021, 01:59 UTC
- Message-ID
- <xmqqfsw5rdsq.fsf@gitster.g>
- In-Reply-To
- <87mtqet5aw.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> 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.