From 3b9e4dd3a3be6d39bece6a9272640be3b5a817d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 5 Jan 2021 20:42:38 +0100 Subject: [PATCH] mktag tests: run "fsck" after creating "mytag" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the last test in the file to run an "fsck --strict" after creating the tag at the end. We're just doing this for good measure to check that fsck behaves as expected now that there's finally a reference for our valid tag. Other tests going to be checking this elsewhere, but it's nice to cover all the edge cases in this test to make it as self-contained as possible. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- t/t3800-mktag.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh index bb300d567d..048000cda9 100755 --- a/t/t3800-mktag.sh +++ b/t/t3800-mktag.sh @@ -350,7 +350,8 @@ EOF test_expect_success 'create valid tag' ' git mktag hash && - git update-ref refs/tags/mytag $(cat hash) $(test_oid zero) + git update-ref refs/tags/mytag $(cat hash) $(test_oid zero) && + git fsck --strict ' test_done