X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fdrs-push-rejects;fp=tests%2Ftests%2Fdrs-push-rejects;h=7b7c5f32a2a3c8e093e5f0b0669055c01e6777e1;hp=f87cbdcbefc5f873b32c74b3b36e830534c30dae;hb=7a47622fe7b1a2d1db2f3cb917926e93c683dc2a;hpb=82da82e49b4ae7143bf9fdb582fcb46e1446a2e4 diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index f87cbdcb..7b7c5f32 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -139,6 +139,18 @@ mktag mustfail 'tag name in tag is wrong' \ refs/tags/$tagpfx/wombat:refs/tags/$tagpfx/$version $push_spec1 +echo ==== +badcommit=$( + git cat-file commit HEAD | \ + perl -pe 's/^committer.*\n//' | \ + git hash-object -w -t commit --stdin +) +git checkout -b broken $badcommit +prep unstable sid +mktag +mustfail "corrupted object $badcommit" $push_spec + +git checkout dgit/sid prep unstable sid mktag mustsucceed $push_spec # succeeds