Ævar Arnfjörð Bjarmason [off-list ref] 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.