]> git.ipfire.org Git - thirdparty/git.git/commit
t6400: preserve git ls-files exit status code
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sun, 4 Jul 2021 05:46:11 +0000 (12:46 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jul 2021 19:24:11 +0000 (12:24 -0700)
commit66c9562013de1d8fc04fb46a75fb88122df303c4
treeadde48086505266ae6e4b552cdb2415a51fea7c3
parentcdff1bb5a3d6f0e6bf26d8ff088a0e10b40bc4f3
t6400: preserve git ls-files exit status code

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

Let's use the newly introduced test_stdout_line_count in order to check
the exit status code of Git's command.

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