X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fdrs-push-rejects;h=f87cbdcbefc5f873b32c74b3b36e830534c30dae;hp=07abf4aec8e1cf7dc95755b529a3c9b7965d73d4;hb=ae0be57dee74ad701f67dfa484fe983808311762;hpb=15b1af481906f016401f5c16fc548538ad43e806;ds=inline diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index 07abf4ae..f87cbdcb 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -149,6 +149,12 @@ mustfail 'push is missing head ref update' $push_spec1 +$push_spec2 git commit --allow-empty -m 'Dummy update' mktag mustfail 'not replacing previously-pushed version' +$push_spec1 +$push_spec2 + +t-newtag +re-prep +mktag +mustfail 'not replacing previously-pushed version' +$push_spec1 +$push_spec2 + git reset --hard HEAD~ prep_dm_mangle () {