t-tstunt-parsechangelog
+t-dependencies dput-ng
+
+t-git-config dgit.default.dep14tag no
+
t-dsd
t-policy dgit-repos-policy-trusting
t-prep-newpackage example 1.0
t-dgit build
t-dgit push --new
+t-rm-dput-dropping
+
t-commit 'Prep v1.1 which will be rewound'
t-dgit build
t-dgit push
-t-rm-dput-dropping
-git checkout debian/1.0
+git checkout $tagpfx/1.0
t-dgit build
t-dgit push --deliberately-fresh-repo
t-expect-push-fail 'Replay of previously-rewound upload' \
git push "$remote" \
- debian/1.1 \
- debian/1.1~0:refs/dgit/sid
+ $tagpfx/1.1 \
+ $tagpfx/1.1~0:refs/dgit/sid
git checkout master
t-commit "request with $delib that we will replay"
t-dgit build
- t-expect-push-fail E:'policy-hook.*No such file or directory' \
+ t-expect-push-fail 'system: No such file or directory' \
t-dgit push $delib
t-policy dgit-repos-policy-trusting
attempt-replay () {
local mpat=$1
- git show debian/$replayv | grep -e $delib
+ git show $tagpfx/$replayv | grep -e $delib
t-expect-push-fail "$mpat" \
git push "$remote" \
- debian/$replayv \
- +debian/$replayv~0:refs/dgit/sid
+ $tagpfx/$replayv \
+ +$tagpfx/$replayv~0:refs/dgit/sid
}
prepare-replay --deliberately-fresh-repo
# simulate some other thing that we shouldn't delete
-git push $tmp/git/$p.git +master:refs/heads/for-testing
+git push $dgitrepo +master:refs/heads/for-testing
attempt-replay 'does not declare previously heads/for-testing'
t-dgit build
t-dgit push
-attempt-replay "does not declare previously tags/debian/$v"
+attempt-replay "does not declare previously tags/$tagpfx/$v"
-echo ok.
+t-ok