Skip to contentSkip to conversation

t4012: Break up pipe into serial redirections

PATCH Superseded Alexander Strasser 1 participant 1 message Jun 15, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 t4012: Break up pipe into serial redirections

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

---
 t/t4012-diff-binary.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
t/t4012-diff-binary.sh +2 -1
index 60c2f6c..daf8234 100755
@@ -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
 	 then
 		echo unhappy - should have detected an error
Signature · 1 line
1.7.10.2.552.gaa3bb87