]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/receive-pack.c
receive-pack: use bug() and BUG_if_bug()
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 2 Jun 2022 12:25:36 +0000 (14:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Jun 2022 19:51:35 +0000 (12:51 -0700)
commit07b1d8f184e126eef8223757844587cf91d6e14c
tree6903467ced6eef6a4ea6288138b9421636f92902
parent5b2f5d92ca5afc118d3fb798c1f25863a5011a01
receive-pack: use bug() and BUG_if_bug()

Amend code added in a6a84319686 (receive-pack.c: shorten the
execute_commands loop over all commands, 2015-01-07) and amended to
hard die in b6a4788586d (receive-pack.c: die instead of error in case
of possible future bug, 2015-01-07) to use the new bug() function
instead.

Let's also rename the warn_if_*() function that code is in to
BUG_if_*(), its name became outdated in b6a4788586d.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c