t4212: avoid putting git on left-hand side of pipe
commit2063b86b815d9193f789e9e10dae0d513ea327fa
authorJeff King <peff@peff.net>
Thu, 27 Apr 2023 08:14:06 +0000 (27 04:14 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Apr 2023 15:53:32 +0000 (27 08:53 -0700)
tree642ba07c23a63ba75c50f3c5cc67154c56f4aed5
parent73876f4861cd3d187a4682290ab75c9dccadbc56
t4212: avoid putting git on left-hand side of pipe

We wouldn't expect cat-file to fail here, but it's good practice to
avoid putting git on the upstream of a pipe, as we otherwise ignore its
exit code.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4212-log-corrupt.sh