diff options
-rwxr-xr-x | tests/tests/push-newpackage | 11 | ||||
-rw-r--r-- | tests/worktrees/pari-extra_3-1.tar | bin | 71680 -> 92160 bytes |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/tests/push-newpackage b/tests/tests/push-newpackage index eea5685..030507f 100755 --- a/tests/tests/push-newpackage +++ b/tests/tests/push-newpackage @@ -18,6 +18,17 @@ LANG=C t-dgit push 2>&1 \ | grep 'package appears to be new in this suite' >/dev/null t-dgit build + +git checkout bogus + +set +e +(set -e; 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 diff --git a/tests/worktrees/pari-extra_3-1.tar b/tests/worktrees/pari-extra_3-1.tar Binary files differindex 115a795..81a6a54 100644 --- a/tests/worktrees/pari-extra_3-1.tar +++ b/tests/worktrees/pari-extra_3-1.tar |