diff options
| author | Gatla Vishweshwar Reddy <gatlavishweshwarreddy26@gmail.com> | 2026-07-09 10:39:35 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-09 09:36:19 -0700 |
| commit | c4fcd5039b642560cf0555dbbaa70383fa4fdef2 (patch) | |
| tree | e6beeeecadea907f4df476fd7b2c866c30e86262 /git-commit-script | |
| parent | f85a7e662054a7b0d9070e432508831afa214b47 (diff) | |
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>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions
