t0030-t0050: avoid pipes with Git on LHS
commiteed36fce38c406b548d53c56483e1d2e25c5c971
authorShubham Mishra <shivam828787@gmail.com>
Sat, 12 Mar 2022 06:21:26 +0000 (12 11:51 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Mar 2022 00:22:04 +0000 (12 16:22 -0800)
treed03ba431dcb3f6c7fbde5457e374b3d773e749bd
parent9b6d1fc48a29abdd49c267ce1bf06bac5151a0e4
t0030-t0050: avoid pipes with Git on LHS

Pipes ignore error codes of LHS command and thus we should not use
them with Git in tests. As an alternative, use a 'tmp' file to write
the Git output so we can test the exit code.

Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0030-stripspace.sh
t/t0050-filesystem.sh