t0024: avoid losing exit status to pipes
commitd262bfa3021a6ae6f2de37c433345fb44dea2bca
authorGhanshyam Thakkar <shyamthakkar001@gmail.com>
Fri, 19 Jan 2024 03:33:34 +0000 (19 09:03 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Jan 2024 17:20:39 +0000 (20 09:20 -0800)
treec4c6e4f4be0f1e3fdeb6a6730920e7e025440a0f
parent186b115d3062e6230ee296d1ddaa0c4b72a464b5
t0024: avoid losing exit status to pipes

Replace pipe with redirection operator '>' to store the output
to a temporary file after 'git archive' command since the pipe
will swallow the command's exit code and a crash won't
necessarily be noticed.

Also fix an unwanted space after redirection '>' to match the
style described in CodingGuidelines.

Signed-off-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0024-crlf-archive.sh