t6300: check for cat-file exit status code
commit1549577338c7c3a4455e9b3f05f9c8740b8e5337
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sat, 21 Aug 2021 01:36:34 +0000 (21 08:36 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Aug 2021 18:45:54 +0000 (25 11:45 -0700)
tree3c039efbc1f501f35dabee5c46d8cf669f9762dc
parent597fa8cb430179ec2b28e2d39a857af25717c98c
t6300: check for cat-file exit status code

In test_atom(), we're piping the output of cat-file to tail(1),
thus, losing its exit status.

Let's use a temporary file to preserve git exit status code.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh