chiark / gitweb /
tests: drs-push-rejects: more error tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 6 Mar 2014 01:01:35 +0000 (01:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 6 Mar 2014 01:01:35 +0000 (01:01 +0000)
tests/tests/drs-push-rejects

index aa092bc..7f08810 100755 (executable)
@@ -105,6 +105,13 @@ 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