]> git.ipfire.org Git - thirdparty/git.git/commit
t6423: fix suppression of Git’s exit code in tests
authorAyush Chandekar <ayu.chandekar@gmail.com>
Sun, 2 Feb 2025 12:09:26 +0000 (17:39 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Feb 2025 23:23:15 +0000 (15:23 -0800)
commit7c1d34fe5d1229362f2c3ecf2d493167a1f555a2
treeaf22081e01dda653fda8808a82f9707077fb2b48
parentbc204b742735ae06f65bb20291c95985c9633b7f
t6423: fix suppression of Git’s exit code in tests

Some test in t6423 supress Git's exit code, which can cause test
failures go unnoticed. Specifically using git <subcommand> |
<other-command> masks potential failures of the Git command.

This commit ensures that Git's exit status is correctly propogated by:
- Avoiding pipes that suppress exit codes.

Signed-off-by: Ayush Chandekar <ayu.chandekar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6423-merge-rename-directories.sh