chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: drs-push-rejects: more error tests
[dgit.git]
/
tests
/
tests
/
drs-push-rejects
diff --git
a/tests/tests/drs-push-rejects
b/tests/tests/drs-push-rejects
index aa092bc81ee7eb73f05cc22a87af78f762d066a6..7f088103adbf621c36e5dfab9e577063c7e69c49 100755
(executable)
--- 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
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
prep unstable sid
mktag
mustsucceed $push_spec # succeeds
@@
-120,6
+127,12
@@
prep_dm_mangle () {
mktag
}
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
git checkout v2
version=3-2_dummy2