]> git.ipfire.org Git - thirdparty/git.git/commit - t/helper/test-pkt-line.c
t5703: feed raw data into test-tool unpack-sideband
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Thu, 26 Mar 2020 04:37:38 +0000 (11:37 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 00:30:48 +0000 (17:30 -0700)
commit84370e36bb6b26182f70567b2d94d77960d85b3f
treece89ffcf47bc0175ec6c62cec1c1d1d60e1d4382
parentf73533aa38e5a8f3e56d1cc7d31852b0710b3e39
t5703: feed raw data into test-tool unpack-sideband

busybox's sed isn't binary clean.
Thus, triggers false-negative on this test.

We could replace sed with perl on this usecase.
But, we could slightly modify the helper to discard unwanted data in the
beginning.

Fix the false negative by updating this helper.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-pkt-line.c
t/t5703-upload-pack-ref-in-want.sh