summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-01-05 19:42:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-05 22:58:29 (GMT)
commit3b9e4dd3a3be6d39bece6a9272640be3b5a817d2 (patch)
treeb3798311275564d521ac2bd29dd2090a22147128 /t
parent5c2303e0c7a981528dae68d4979d3bfdc2526276 (diff)
downloadgit-3b9e4dd3a3be6d39bece6a9272640be3b5a817d2.zip
git-3b9e4dd3a3be6d39bece6a9272640be3b5a817d2.tar.gz
git-3b9e4dd3a3be6d39bece6a9272640be3b5a817d2.tar.bz2
mktag tests: run "fsck" after creating "mytag"
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t3800-mktag.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index bb300d5..048000c 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -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