From e37423f081bb6e21eb1b77851ab06d72f30aee57 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 16 May 2024 10:08:35 -0700 Subject: Revert "diff: fix --exit-code with external diff" This reverts commit 11be65cfa43416219e85384a3a80d672b65b76ba, per original author's request to come up with a better strategy. --- t/t4020-diff-external.sh | 8 -------- 1 file changed, 8 deletions(-) (limited to 't') diff --git a/t/t4020-diff-external.sh b/t/t4020-diff-external.sh index b525d16c90..c1ac09ecc7 100755 --- a/t/t4020-diff-external.sh +++ b/t/t4020-diff-external.sh @@ -172,14 +172,6 @@ test_expect_success 'no diff with -diff' ' grep Binary out ' -test_expect_success 'diff.external and --exit-code with output' ' - test_expect_code 1 git -c diff.external=echo diff --exit-code -' - -test_expect_success 'diff.external and --exit-code without output' ' - git -c diff.external=true diff --exit-code -' - echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > file test_expect_success 'force diff with "diff"' ' -- cgit v1.2.3