chiark / gitweb /
tests: drs-push-rejects: more error tests
[dgit.git] / tests / tests / drs-push-rejects
index aa092bc81ee7eb73f05cc22a87af78f762d066a6..7f088103adbf621c36e5dfab9e577063c7e69c49 100755 (executable)
@@ -104,6 +104,13 @@ prep unstable sid
 mktag HEAD~:
 mustfail 'tag refers to wrong kind of object' $push_spec
 
+prep unstable sid
+tag_name=debian/wombat
+mktag
+#git update-ref debian/$version debian/wombat
+mustfail 'tag name in tag is wrong' \
+       refs/tags/debian/wombat:refs/tags/debian/$version $push_spec1
+
 prep unstable sid
 mktag
 mustsucceed $push_spec # succeeds
@@ -120,6 +127,12 @@ prep_dm_mangle () {
        mktag
 }
 
+git commit --amend --message 'Make it not a fast forward'
+version=3-2_dummy2
+prep unstable sid
+mktag
+mustfail 'not fast forward on dgit branch' +$push_spec1 +$push_spec2
+
 git checkout v2
 version=3-2_dummy2