]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mktag tests: run "fsck" after creating "mytag"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 5 Jan 2021 19:42:38 +0000 (20:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Jan 2021 22:58:29 +0000 (14:58 -0800)
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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3800-mktag.sh

index bb300d567db4e6ad32f433f3ac58034a15fd7c7d..048000cda9adea0214fc0b360787b656219fc43b 100755 (executable)
@@ -350,7 +350,8 @@ EOF
 
 test_expect_success 'create valid tag' '
        git mktag <tag.sig >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