chiark / gitweb /
dgit: Gate sending "previously" on deliberately_not_fast_forward not $forceflag
[dgit.git] / tests / tests / trustingpolicy-replay
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-policy dgit-repos-policy-trusting
8 t-prep-newpackage example 1.0
9
10 cd $p
11 revision=1
12 git tag start
13
14 t-dgit build
15 t-dgit push --new
16
17 t-commit 'Prep v2 which will be rewound'
18 t-dgit build
19 t-dgit push
20
21 t-rm-dput-dropping
22 git checkout debian/1.0
23 t-dgit build
24 t-dgit push --deliberately-fresh-repo
25
26 remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
27
28 t-expect-fail 'Replay of previously-rewound upload' \
29 git push "$remote" \
30         debian/1.1 \
31         debian/1.1~0:refs/dgit/sid
32
33 echo ok.
34 echo xxx want to check replay prevention insufficient proofs in tag