aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-15 09:39:55 -0800
committerJunio C Hamano <gitster@pobox.com>2021-12-15 09:39:55 -0800
commit159597f5a3ec881572953995f346635ab9ef8a23 (patch)
tree9e9de475ab4bfee71f41127d48496dfdddf4770c /builtin/pack-objects.c
parentb174a3c01423897154d26c96baab366229f16976 (diff)
parenteafd6e7e5585ecf7e0d4bd542d7565fea008795a (diff)
downloadgit-159597f5a3ec881572953995f346635ab9ef8a23.tar.gz
Merge branch 'ab/die-with-bug'
Code clean-up. * ab/die-with-bug: object.c: use BUG(...) no die("BUG: ...") in lookup_object_by_type() pathspec: use BUG(...) not die("BUG:%s:%d....", <file>, <line>) strbuf.h: use BUG(...) not die("BUG: ...") pack-objects: use BUG(...) not die("BUG: ...")
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 857be7826f..b36ed828d8 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -3397,7 +3397,7 @@ static void read_object_list_from_stdin(void)
if (feof(stdin))
break;
if (!ferror(stdin))
- die("BUG: fgets returned NULL, not EOF, not error!");
+ BUG("fgets returned NULL, not EOF, not error!");
if (errno != EINTR)
die_errno("fgets");
clearerr(stdin);