From 37c967bd54910195bacf44b7190d748ba2151e13 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 6 Mar 2014 01:01:35 +0000 Subject: tests: drs-push-rejects: more error tests --- tests/tests/drs-push-rejects | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/tests') diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index aa092bc..7f08810 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -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 -- cgit v1.2.3