]> git.ipfire.org Git - thirdparty/git.git/commit
patch-id: fix antipatterns in tests
authorJerry Zhang <jerry@skydio.com>
Wed, 2 Feb 2022 04:20:15 +0000 (20:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Feb 2022 19:24:15 +0000 (11:24 -0800)
commit56fa5ac39a8601d965127abebbc533f29eaef751
tree9733071d9705d500c5c55f1f0d20969965797d72
parent4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a
patch-id: fix antipatterns in tests

Clean up the tests for patch-id by moving file preparation
tasks inside the test body and redirecting files directly into
stdin instead of using 'cat'.

Signed-off-by: Jerry Zhang <jerry@skydio.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4204-patch-id.sh