From: Johannes Schindelin Date: Mon, 22 Jun 2015 15:26:36 +0000 (+0200) Subject: fsck: add a simple test for receive.fsck. X-Git-Tag: v2.6.0-rc0~104^2~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/70a4ae73d8 fsck: add a simple test for receive.fsck. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t5504-fetch-receive-strict.sh b/t/t5504-fetch-receive-strict.sh index 69ee13c8be..36024fc51a 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