diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-03-06 01:01:35 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-03-06 01:01:35 +0000 |
commit | 37c967bd54910195bacf44b7190d748ba2151e13 (patch) | |
tree | e241dcc25d3d9ff88fb5deb9a72b9b15e2282118 /tests/tests/drs-push-rejects | |
parent | 4455e483399bb622093aac0ff1cbb93795669859 (diff) |
tests: drs-push-rejects: more error tests
Diffstat (limited to 'tests/tests/drs-push-rejects')
-rwxr-xr-x | tests/tests/drs-push-rejects | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ -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 |