X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fdrs-push-rejects;h=afaed4cf248cb0c76f4f2bd6166379159655d089;hb=d436b26183c219a8633f84aa39cf991fd8b6de4d;hp=8c4ad83cd75acee8b65d289d287404e8f4f05768;hpb=f773b1ed2796196e0fa801886fce493544c38fe0;p=dgit.git diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index 8c4ad83c..afaed4cf 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -10,6 +10,9 @@ t-worktree drs 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" \ @@ -141,13 +144,7 @@ mktag 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 -) -t-expect-fsck-fail $badcommit +t-make-badcommit git checkout -b broken $badcommit prep unstable sid mktag