diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-12-15 09:39:55 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-12-15 09:39:55 -0800 |
| commit | 159597f5a3ec881572953995f346635ab9ef8a23 (patch) | |
| tree | 9e9de475ab4bfee71f41127d48496dfdddf4770c /builtin/pack-objects.c | |
| parent | b174a3c01423897154d26c96baab366229f16976 (diff) | |
| parent | eafd6e7e5585ecf7e0d4bd542d7565fea008795a (diff) | |
| download | git-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.c | 2 |
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); |
