From: Ian Jackson Date: Mon, 19 Sep 2016 00:48:13 +0000 (+0100) Subject: Test suite: drs-push-rejects: Test push of same version with different dgit X-Git-Tag: archive/debian/2.0~147 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=ae0be57dee74ad701f67dfa484fe983808311762 Test suite: drs-push-rejects: Test push of same version with different dgit Signed-off-by: Ian Jackson --- diff --git a/TODO.BRANCH b/TODO.BRANCH index a81ca558..288a9c78 100644 --- a/TODO.BRANCH +++ b/TODO.BRANCH @@ -15,8 +15,6 @@ Want tests for "old" dgit to push again with new tag, push again with old tag - - rejecting push of same version with one tag when then the other - * Provide --gpbpq[=:] options 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 () {