diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-04-21 09:34:14 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-22 15:53:35 -0700 |
| commit | 0cb6316b08463d9ec491e6db5ce53c3a65c048a8 (patch) | |
| tree | cab3609874cfb8ee7c8457101244d8889e3a2139 /t/t4013/diff.format-patch_--inline_--stdout_initial..master^ | |
| parent | 8c9303b1ffae5b745d1b0a1f98330cf7944d8db0 (diff) | |
| download | git-0cb6316b08463d9ec491e6db5ce53c3a65c048a8.tar.gz git-0cb6316b08463d9ec491e6db5ce53c3a65c048a8.zip | |
t: prepare `test_match_signal ()` calls for `set -e`
We have a couple of calls to `test_match_signal ()` where we execute a
Git command and expect it to die with a specific signal. These calls
will essentially execute the process in a subshell via `foo; echo $?`,
but as we expect `foo` to fail this will cause the overall subshell to
fail once we `set -e`.
Fix this issue by using `foo && echo 0 || echo $?` instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..master^')
0 files changed, 0 insertions, 0 deletions
