t5317: stop losing return codes of git ls-files
commit3f75a6e5b44d179dbfa99622a8a19d4bd4e04d8f
authorRené Scharfe <l.s.r@web.de>
Tue, 29 Nov 2022 12:21:17 +0000 (29 13:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Nov 2022 01:00:32 +0000 (30 10:00 +0900)
tree9a0e36ea7a636f9d59741255cf5775cbc3ee4c80
parent319605f8f00e402f3ea758a02c63534ff800a711
t5317: stop losing return codes of git ls-files

fb2d0db502 (test-lib-functions: add parsing helpers for ls-files and
ls-tree, 2022-04-04) not only started to use helper functions, it also
started to pipe the output of git ls-files into them directly, without
using a temporary file.  No explanation was given.  This causes the
return code of that git command to be ignored.

Revert that part of the change, use temporary files and check the return
code of git ls-files again.

Suggested-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5317-pack-objects-filter-objects.sh