replay: die() instead of failing assert()
commita9df61ace31b84c9609dfa4875e93b8c92e06e56
authorElijah Newren <newren@gmail.com>
Fri, 24 Nov 2023 11:10:33 +0000 (24 12:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Nov 2023 01:10:48 +0000 (26 10:10 +0900)
tree11a223de282c664a7fa44b471685b017a7b6175e
parentd46da6d90be99f91988eececd5368170b0eded1f
replay: die() instead of failing assert()

It's not a good idea for regular Git commands to use an assert() to
check for things that could happen but are not supported.

Let's die() with an explanation of the issue instead.

Co-authored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c