mktag tests: test verify_object() with replaced objects
authorÆvar Arnfjörð Bjarmason <redacted>
Tue, 5 Jan 2021 19:42:42 +0000 (20:42 +0100)
committerJunio C Hamano <redacted>
Tue, 5 Jan 2021 22:58:29 +0000 (14:58 -0800)
commit692654dca01dda9951a81de4ecfa958b61b8bc5c
tree7dfdba837cecba451b08fc503279c2e053f2cc54
parent30f882c16d64e9859d823db16ae7c5157f09397b
mktag tests: test verify_object() with replaced objects

Add tests to demonstrate what "mktag" does in the face of replaced
objects.

There was an existing test for replaced objects fed to "mktag" added
in cc400f50112 (mktag: call "check_sha1_signature" with the
replacement sha1, 2009-01-23), but that one only tests a
commit->commit mapping. Not a mapping to a different type as like
we're also testing for here. We could remove the "mktag" test in
t6050-replace.sh now if the created tag wasn't being used by a
subsequent "fsck" test.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t3800-mktag.sh
git clone https://git.99rst.org/PROJECT