]> git.ipfire.org Git - thirdparty/git.git/commit
t1410-reflog.sh: avoid suppressing git's exit code in pipelines
authorGatla Vishweshwar Reddy <gatlavishweshwarreddy26@gmail.com>
Thu, 9 Jul 2026 05:09:35 +0000 (10:39 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Jul 2026 16:36:19 +0000 (09:36 -0700)
commitc4fcd5039b642560cf0555dbbaa70383fa4fdef2
treee6beeeecadea907f4df476fd7b2c866c30e86262
parentf85a7e662054a7b0d9070e432508831afa214b47
t1410-reflog.sh: avoid suppressing git's exit code in pipelines

Piping git commands directly to wc -l suppresses the exit code of
git, hiding potential failures from the test suite. Use
test_stdout_line_count instead, which handles exit code preservation
internally while keeping the test logic clean and readable.

Signed-off-by: Gatla Vishweshwar Reddy <gatlavishweshwarreddy26@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1410-reflog.sh