Do not hide possible git errors by masking its process
exit status.

Signed-off-by: Alexander Strasser <>
Signed-off-by: Junio C Hamano <>
 t/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/ b/t/
index 60c2f6c..daf8234 100755
--- a/t/
+++ b/t/
@@ -64,7 +64,8 @@ test_expect_success 'apply --numstat understands diff 
--binary format' '
 # apply needs to be able to skip the binary material correctly
 # in order to report the line number of a corrupt patch.
 test_expect_success 'apply detecting corrupt patch correctly' '
-        git diff | sed -e "s/-CIT/xCIT/" >broken &&
+        git diff >output &&
+        sed -e "s/-CIT/xCIT/" <output >broken &&
         if git apply --stat --summary broken 2>detected
                echo unhappy - should have detected an error
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to