diff options
author | Eric Wong <e@80x24.org> | 2024-06-18 21:30:41 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-20 10:28:46 -0700 |
commit | 75daa42ddf5ec4755eaec47909f30cbd84719e88 (patch) | |
tree | c3c9bd8cbc7284513e198718764d56b3f5db9e6d /commit.c | |
parent | 8270201971e4ff58656065485c0fd92adddbca18 (diff) |
t1006: ensure cat-file info isn't buffered by default
While working on buffering changes to `git cat-file' in a
separate patch, I inadvertently made the output of --batch-check
and the `info' command of --batch-command buffered as if
opt->buffer_output is turned on by default.
Buffering by default breaks some 3rd-party Perl scripts using
cat-file, but this breakage was not detected anywhere in our
test suite. Add a small Perl snippet to test this problem since
(AFAIK) other equivalent ways to test this behavior from Bourne
shell and/or awk would require racy sleeps, non-portable FIFOs
or tedious C code.
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions