diff options
| author | Siddharth Shrimali <r.siddharth.shrimali@gmail.com> | 2026-03-04 02:10:28 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-03 13:29:28 -0800 |
| commit | fc2ead0053d31735ac4a02c370c5c2b6dbaf2bbe (patch) | |
| tree | dd41cd7d8e6bb90148701d8c29b61d51b6e7201d /contrib/persistent-https | |
| parent | 67ad42147a7acc2af6074753ebd03d904476118f (diff) | |
| download | git-fc2ead0053d31735ac4a02c370c5c2b6dbaf2bbe.tar.gz git-fc2ead0053d31735ac4a02c370c5c2b6dbaf2bbe.zip | |
t3700: avoid suppressing git's exit code
Replace pipelines involving git commands with temporary files (actual)
to ensure that any crashes or unexpected exit codes from the git
commands are properly caught by the test suite. A simple pipeline
like 'git foo | grep bar' ignores the exit code of 'git', which
can hide regressions.
In cases where we were counting lines with 'wc -l' to ensure a
pattern was absent, simplify the logic to use '! grep' to avoid
subshells entirely.
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Siddharth Shrimali <r.siddharth.shrimali@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
