From: Ævar Arnfjörð Bjarmason Date: Tue, 7 Dec 2021 11:05:54 +0000 (+0100) Subject: object.c: use BUG(...) no die("BUG: ...") in lookup_object_by_type() X-Git-Tag: v2.35.0-rc0~68^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eafd6e7e5585ecf7e0d4bd542d7565fea008795a;p=thirdparty%2Fgit.git object.c: use BUG(...) no die("BUG: ...") in lookup_object_by_type() Adjust code added in 7463064b280 (object.h: add lookup_object_by_type() function, 2021-06-22) to use the BUG() function. Signed-off-by: Junio C Hamano Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/object.c b/object.c index 23a24e678a..4be82c1e7b 100644 --- a/object.c +++ b/object.c @@ -199,7 +199,7 @@ struct object *lookup_object_by_type(struct repository *r, case OBJ_BLOB: return (struct object *)lookup_blob(r, oid); default: - die("BUG: unknown object type %d", type); + BUG("unknown object type %d", type); } }