Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Strasser <eclipse7@gmx.net>2012-07-17 00:43:58 +0400
committerJunio C Hamano <gitster@pobox.com>2012-07-17 00:49:29 +0400
commit4a2b716e220f0f5369c386d7257b87399d424a3f (patch)
treecb5f74459500e0697077484a6f817053dc841195 /t/t4012-diff-binary.sh
parentbb84e67c82af3a6678f193159f56d2244c5529dc (diff)
t4012: Actually quote the sed script
The nested quoting is not needed in this cases, thus the previous version did work just fine. Nevertheless the usage is misleading, so just achieve nested quoting by using double quotes instead. Lower the probability of breakage in the future and make the code easier to read. NOTE: Just dropping the single quotes around the sed arguments would have also been possible. Signed-off-by: Alexander Strasser <eclipse7@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4012-diff-binary.sh')
-rwxr-xr-xt/t4012-diff-binary.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t4012-diff-binary.sh b/t/t4012-diff-binary.sh
index 3c542690cd..60c2f6c36f 100755
--- a/t/t4012-diff-binary.sh
+++ b/t/t4012-diff-binary.sh
@@ -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