X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fdrs-push-rejects;h=4b7de3408c9496137f609dfdf0ec1a6743a594d3;hb=866a4b0d97a4863c9c0c2f6b984d8f373b11af52;hp=8c4ad83cd75acee8b65d289d287404e8f4f05768;hpb=6cbd45af603bc976c8334f839cebefbad2b3a622;p=dgit.git diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index 8c4ad83c..4b7de340 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -141,13 +141,7 @@ 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 -) -t-expect-fsck-fail $badcommit +t-make-badcommit git checkout -b broken $badcommit prep unstable sid mktag