Skip to content

Microproject: avoid suppressing git's exit code

Trieu Huynh git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16t7004: avoid suppressing git's exit codet/t7004-tag.sh+4 -20 replies
2/16t6423: avoid suppressing git's exit codet/t6423-merge-rename-directories.sh+2 -10 replies
3/16t6411: avoid suppressing git's exit codet/t6411-merge-filemode.sh+4 -20 replies
4/16t6101: avoid suppressing git's exit codet/t6101-rev-parse-parents.sh+2 -10 replies
5/16t6006: avoid suppressing git's exit codet/t6006-rev-list-format.sh+2 -10 replies
6/16t5304: avoid suppressing git's exit codet/t5304-prune.sh+2 -10 replies
7/16t4153: avoid suppressing git's exit codet/t4153-am-resume-override-opts.sh+2 -11 reply
8/16t4150: avoid suppressing git's exit codet/t4150-am.sh+3 -20 replies
9/16t4140: avoid suppressing git's exit codet/t4140-apply-ita.sh+2 -10 replies
10/16t4039: avoid suppressing git's exit codet/t4039-diff-assume-unchanged.sh+2 -10 replies
11/16t3903: avoid suppressing git's exit codet/t3903-stash.sh+3 -21 reply
12/16t3701: avoid suppressing git's exit codet/t3701-add-interactive.sh+8 -40 replies
13/16t3412: avoid suppressing git's exit codet/t3412-rebase-root.sh+4 -20 replies
14/16t1400: avoid suppressing git's exit codet/t1400-update-ref.sh+2 -10 replies
15/16t0100: avoid suppressing git's exit codet/t0100-previous.sh+2 -10 replies
16/16t2206: avoid suppressing git's exit codet/t2206-add-submodule-ignored.sh+30 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [GSoC PATCH 00/16] Microproject: avoid suppressing git's exit code

Piping git command output directly to subsequent command (eg. grep) hides the exit code of git behind the pipe. A crash in git would go unnoticed because the shell only sees grep's exit code.

This series extends the same fix to 16 more test files, following the approach introduced in t8003 [1] (redirect output to a temporary file, then use test_grep on that file).

Note: t2206 is a special case -- some tests cd into a subdirectory that is itself a git repo and run 'git add .' on the whole working tree. To prevent the temporary file from being accidentally staged, it is written as '../actual', outside the inner repo.

Related-to: https://lore.kernel.org/git/[email protected]/T/#t
See-also: https://lore.kernel.org/git/[email protected]/T/#t

Trieu Huynh (16):
t7004: avoid suppressing git's exit code
t6423: avoid suppressing git's exit code
t6411: avoid suppressing git's exit code
t6101: avoid suppressing git's exit code
t6006: avoid suppressing git's exit code
t5304: avoid suppressing git's exit code
t4153: avoid suppressing git's exit code
t4150: avoid suppressing git's exit code
t4140: avoid suppressing git's exit code
t4039: avoid suppressing git's exit code
t3903: avoid suppressing git's exit code
t3701: avoid suppressing git's exit code
t3412: avoid suppressing git's exit code
t1400: avoid suppressing git's exit code
t0100: avoid suppressing git's exit code
t2206: avoid suppressing git's exit code

 t/t0100-previous.sh                 |  3 +-
 t/t1400-update-ref.sh               |  3 +-
 t/t2206-add-submodule-ignored.sh    | 45 +++++++++++++++++++----------
 t/t3412-rebase-root.sh              |  6 ++--
 t/t3701-add-interactive.sh          | 12 +++++---
 t/t3903-stash.sh                    |  5 ++--
 t/t4039-diff-assume-unchanged.sh    |  3 +-
 t/t4140-apply-ita.sh                |  3 +-
 t/t4150-am.sh                       |  5 ++--
 t/t4153-am-resume-override-opts.sh  |  3 +-
 t/t5304-prune.sh                    |  3 +-
 t/t6006-rev-list-format.sh          |  3 +-
 t/t6101-rev-parse-parents.sh        |  3 +-
 t/t6411-merge-filemode.sh           |  6 ++--
 t/t6423-merge-rename-directories.sh |  3 +-
 t/t7004-tag.sh                      |  6 ++--
 16 files changed, 74 insertions(+), 38 deletions(-)
Signature · 1 line
2.43.0