t6402: preserve git exit status code
commitba8c2680ec996160ae16750b48e4cc10c537bdd3
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sun, 4 Jul 2021 05:46:12 +0000 (4 12:46 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jul 2021 19:24:12 +0000 (6 12:24 -0700)
tree739e41dbba63a68f9168a4bfd01b50863f9ea6b5
parent66c9562013de1d8fc04fb46a75fb88122df303c4
t6402: preserve git exit status code

In t6402, we're checking number of files in the index and the working
tree by piping the output of Git's command to "wc -l", thus losing the
exit status code of git.

Let's use the new helper test_stdout_line_count in order to preserve
Git's exit status code.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6402-merge-rename.sh