t0000: avoid masking git exit value through pipes
commit66c0c44df617446763845a71a8fe0fab4cb848a9
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 16 Sep 2021 08:55:23 +0000 (16 01:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Sep 2021 20:43:42 +0000 (16 13:43 -0700)
tree2104fba39372a0abc6806cb640e47a795ea0d2b8
parent637799bf0ab72a509e1f2b29ee6ab3367eefbff9
t0000: avoid masking git exit value through pipes

9af0b8dbe2 (t0000-basic: more commit-tree tests., 2006-04-26) adds
tests for commit-tree that mask the return exit from git as described
in a378fee5b07 (Documentation: add shell guidelines, 2018-10-05).

Fix the tests, to avoid pipes by using a temporary file instead.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0000-basic.sh