t4012: Actually quote the sed script
[gitweb.git] / t / t4012-diff-binary.sh
index 3c542690cddebb43bfb7c8d65b25072ac1835d9f..60c2f6c36f942c75cd1c9a4f775cc2d37355b13e 100755 (executable)
@@ -64,7 +64,7 @@ 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 | sed -e "s/-CIT/xCIT/" >broken &&
         if git apply --stat --summary broken 2>detected
         then
                echo unhappy - should have detected an error
@@ -79,7 +79,7 @@ test_expect_success 'apply detecting corrupt patch correctly' '
 '
 
 test_expect_success 'apply detecting corrupt patch correctly' '
-        git diff --binary | sed -e 's/-CIT/xCIT/' >broken &&
+        git diff --binary | sed -e "s/-CIT/xCIT/" >broken &&
         if git apply --stat --summary broken 2>detected
         then
                echo unhappy - should have detected an error