aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4002-diff-basic.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t4002-diff-basic.sh')
-rwxr-xr-xt/t4002-diff-basic.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh
index d524d4057d..e44648e6f3 100755
--- a/t/t4002-diff-basic.sh
+++ b/t/t4002-diff-basic.sh
@@ -7,7 +7,6 @@ test_description='Test diff raw-output.
'
-TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-read-tree-m-3way.sh
@@ -403,9 +402,9 @@ test_expect_success 'diff-tree -r B A == diff-tree -r -R A B' '
git diff-tree -r -R $tree_A $tree_B >.test-b &&
cmp -s .test-a .test-b'
-test_expect_success'diff can read from stdin' '
+test_expect_success 'diff can read from stdin' '
test_must_fail git diff --no-index -- MN - < NN |
- grep -v "^index" | sed "s#/-#/NN#" >.test-a &&
+ sed "/^index/d; s#/-#/NN#" >.test-a &&
test_must_fail git diff --no-index -- MN NN |
grep -v "^index" >.test-b &&
test_cmp .test-a .test-b