5 t-tstunt-parsechangelog
9 t-git-config dgit.default.dep14tag no
12 t-policy dgit-repos-policy-trusting
13 t-prep-newpackage example 1.0
24 t-commit 'Prep v1.1 which will be rewound'
28 git checkout $tagpfx/1.0
30 t-dgit push --deliberately-fresh-repo
32 remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
34 t-expect-push-fail 'Replay of previously-rewound upload' \
37 $tagpfx/1.1~0:refs/dgit/sid
42 : "More subtle replay prevention checks"
47 # We have to stop the pushes succeeding because if they work they
48 # record the tag, which prevents the replays. We are simulating
49 # abortive pushes (since we do want to avoid a situation where
50 # dangerous old signed tags can exist).
53 t-commit "request with $delib that we will replay"
55 t-expect-push-fail 'system: No such file or directory' \
58 t-policy dgit-repos-policy-trusting
65 git show $tagpfx/$replayv | grep -e $delib
66 t-expect-push-fail "$mpat" \
69 +$tagpfx/$replayv~0:refs/dgit/sid
72 prepare-replay --deliberately-fresh-repo
74 # simulate some other thing that we shouldn't delete
75 git push $dgitrepo +master:refs/heads/for-testing
77 attempt-replay 'does not declare previously heads/for-testing'
79 prepare-replay --deliberately-not-fast-forward
81 t-commit 'later version to stop not fast forward rewinding'
85 attempt-replay "does not declare previously tags/$tagpfx/$v"