Skip to content

Commit

Permalink
mktag tests: run "fsck" after creating "mytag"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
avar authored and gitster committed Jan 5, 2021
1 parent 5c2303e commit 3b9e4dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t3800-mktag.sh
Expand Up @@ -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

0 comments on commit 3b9e4dd

Please sign in to comment.