diff options
| author | Johannes Sixt <j6t@kdbg.org> | 2022-11-21 18:58:13 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-12-05 10:02:34 +0900 |
| commit | 500317ae03f635b247627eeb9760d9de2e343875 (patch) | |
| tree | 20e0aeaa6d9cb9577f6b916d31a6834e881010e5 /diff.c | |
| parent | Downmerge a bit more for 2.38.2 (diff) | |
| download | git-500317ae03f635b247627eeb9760d9de2e343875.tar.gz git-500317ae03f635b247627eeb9760d9de2e343875.zip | |
t3920: don't ignore errors of more than one command with `|| true`
It is customary to write `A || true` to ignore a potential error exit of
command A. But when we have a sequence `A && B && C || true && D`, then
a failure of any of A, B, or C skips to D right away. This is not
intended here. Turn the command whose failure is to be ignored into a
compound command to ensure it is the only one that is allowed to fail.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
