cd $p
+git remote set-url origin \
+ "ext::$troot/drs-git-ext %S /pari-extra.git"
+
mustfail () {
local mpat="$1"; shift
t-expect-push-fail "$mpat" \
mustfail 'multiple headers '$h' in signed tag object' $push_spec
- expect_fsck_fail+=" $badtag"
+ t-expect-fsck-fail $badtag
done
done
mustfail 'push is missing head ref update' +$push_spec2
mustfail 'pushing unexpected ref' $push_spec HEAD:refs/wombat
mustfail 'pushing multiple heads' $push_spec HEAD:refs/dgit/wombat
-mustfail E:'pushing multiple tags|pushing too many similar tags' \
+mustfail E:'pushing multiple tags|pushing too many similar tags|need exactly one archive' \
$push_spec HEAD:refs/tags/$tagpfx/wombat
prep unstable sid
mustfail 'tag name in tag is wrong' \
refs/tags/$tagpfx/wombat:refs/tags/$tagpfx/$version $push_spec1
-echo ====
-badcommit=$(
- git cat-file commit HEAD | \
- perl -pe 's/^committer.*\n//' | \
- git hash-object -w -t commit --stdin
-)
-expect_fsck_fail+=" $badcommit"
+t-make-badcommit
git checkout -b broken $badcommit
prep unstable sid
mktag
mktag
mustfail 'not replacing previously-pushed version' +$push_spec1 +$push_spec2
-t-newtag
re-prep
mktag
mustfail 'not replacing previously-pushed version' +$push_spec1 +$push_spec2