chiark / gitweb /
Test suite: drs-push-rejects: Test push of same version with different dgit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 19 Sep 2016 00:48:13 +0000 (01:48 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Sep 2016 19:12:52 +0000 (20:12 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
TODO.BRANCH
tests/tests/drs-push-rejects

index a81ca5581926ad3a2a03794b2cc737090b0ded42..288a9c78fca812570aa71a859adeced45f7c73c6 100644 (file)
@@ -15,8 +15,6 @@ Want tests for
    "old" dgit to push again with new tag, push again with
    old tag
 
    "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
 
 
  * Provide --gpbpq[=:] options
 
index 07abf4aec8e1cf7dc95755b529a3c9b7965d73d4..f87cbdcbefc5f873b32c74b3b36e830534c30dae 100755 (executable)
@@ -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
 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 () {
 git reset --hard HEAD~
 
 prep_dm_mangle () {