X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fpush-newpackage;h=9954b3fc9fb424cc9a763fc795bced4743812210;hp=3dfe0b58fadaa137c2142f98a82af85059fb8a84;hb=e494013b5146a4ac0012cea5d5b1ca41a9712529;hpb=d064fe28e62e45dca47b9925eac285e7b7becc5d;ds=sidebyside diff --git a/tests/tests/push-newpackage b/tests/tests/push-newpackage index 3dfe0b58..9954b3fc 100755 --- a/tests/tests/push-newpackage +++ b/tests/tests/push-newpackage @@ -10,13 +10,25 @@ cd $p git branch -m dgit/sid master git remote rm dgit +t-refs-same-start +t-ref-head + LANG=C t-dgit push 2>&1 \ | tee /dev/stderr \ | grep 'package appears to be new in this suite' >/dev/null -echo y - t-dgit build + +git checkout bogus + +set +e +(set -e; DGIT_TEST_DEBUG=' ' t-dgit push --new) +rc=$? +set -e +if [ $rc = 0 ]; then fail "push succeeded when tree mismatch"; fi + +git checkout master + t-dgit push --new t-pushed-good master