summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2022-11-21 18:58:13 +0100
committerJunio C Hamano <gitster@pobox.com>2022-12-05 10:02:34 +0900
commit500317ae03f635b247627eeb9760d9de2e343875 (patch)
tree20e0aeaa6d9cb9577f6b916d31a6834e881010e5 /commit.c
parente7e5c6f715b2de7bea0d39c7d2ba887335b40aa0 (diff)
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 'commit.c')
0 files changed, 0 insertions, 0 deletions