t7406: avoid having git commands upstream of a pipe
commit65799fbca72a251c75b087e7d018f367a4f7794f
authorElijah Newren <newren@gmail.com>
Wed, 8 Aug 2018 16:31:05 +0000 (8 09:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Aug 2018 17:52:55 +0000 (8 10:52 -0700)
tree5c2b7c4ac623ff323cd76f2d534636989f2de611
parent602813cff3798f63b7f1f8c9a362e4da05772cad
t7406: avoid having git commands upstream of a pipe

When a git command is on the left side of a pipe, the pipe will swallow
its exit status, preventing us from detecting failures in said commands.
Restructure the tests to put the output in a temporary file to avoid
this problem.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7406-submodule-update.sh