]> git.ipfire.org Git - thirdparty/git.git/commit
t0003: avoid pipes with Git on LHS
authorShubham Mishra <shivam828787@gmail.com>
Wed, 23 Feb 2022 11:53:47 +0000 (17:23 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Feb 2022 21:12:37 +0000 (13:12 -0800)
commitae5d569bb22ea4e889c9a2da757ed0c253ec1fc1
tree36b73a6ca64c29b21e9de1c867ef1cc22377b008
parent4c53a8c20f8984adb226293a3ffd7b88c3f4ac1a
t0003: avoid pipes with Git on LHS

Pipes ignore error codes of LHS command and thus we should not use them
with Git in tests. As an alternative, use a 'tmp' file to write the Git
output so we can test the exit code.

Signed-off-by: Shubham Mishra <shivam828787@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0003-attributes.sh