From: Johannes Schindelin Date: Fri, 19 Jun 2015 13:34:28 GMT Subject: [PATCH v6 11/19] fsck: Add a simple test for receive.fsck. Message-ID: <18f00f86adf7f9e8a252e857e60d369270fdbe33.1434720655.git.johannes.schindelin@gmx.de> In-Reply-To: Signed-off-by: Johannes Schindelin --- t/t5504-fetch-receive-strict.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/t/t5504-fetch-receive-strict.sh b/t/t5504-fetch-receive-strict.sh index 69ee13c..3f7e96a 100755 --- a/t/t5504-fetch-receive-strict.sh +++ b/t/t5504-fetch-receive-strict.sh @@ -115,4 +115,25 @@ test_expect_success 'push with transfer.fsckobjects' ' test_cmp exp act ' +cat >bogus-commit <<\EOF +tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 +author Bugs Bunny 1234567890 +0000 +committer Bugs Bunny 1234567890 +0000 + +This commit object intentionally broken +EOF + +test_expect_success 'push with receive.fsck.missingemail=warn' ' + commit="$(git hash-object -t commit -w --stdin act 2>&1 && + grep "missingemail" act +' + test_done -- 2.3.1.windows.1.9.g8c01ab4