]> git.ipfire.org Git - thirdparty/git.git/commit
mktag tests: test hash-object --literally and unreachable fsck
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 17 Jun 2021 10:41:59 +0000 (12:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jun 2021 16:30:41 +0000 (09:30 -0700)
commit47c0cb1a5db27dcf1c6117158b8152d1beacc9de
treeda9f31d5c944b066adb593a1a68eee66e42305f3
parent6a748c2c666e50efcb9a8b7af2fd030946575ef1
mktag tests: test hash-object --literally and unreachable fsck

Extend the mktag tests to pass the tag we've created through both
hash-object --literally and fsck.

This checks that fsck itself will not complain about certain invalid
content if a reachable tip isn't involved. Due to how fsck works and
walks the graph the failure will be different if the object is
reachable, so we might succeed before we've created the ref.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3800-mktag.sh