pipes doesn't care about error codes and ignore them thus we should not use them in tests. As an easy alternative, I am using a tmp file to write from git command so we can test the exit code. This is my first contribution that's why I am keeping diff short with an intention to understand the process instead of making impactful change in first attempt. Later, I will send more patches to fix the issue for other files. Shubham Mishra (2): t0001: remove pipes t0003: remove pipes t/t0001-init.sh | 4 ++-- t/t0003-attributes.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) base-commit: e6ebfd0e8cbbd10878070c8a356b5ad1b3ca464e -- 2.25.1