chiark / gitweb /
Print better message for lack of configuration settings.
[dgit.git] / tests / tests / push-newpackage
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-archive-none pari-extra
6 t-git-none
7 t-worktree 3-1
8 v=3-1
9 cd $p
10 git branch -m dgit/sid master
11 git remote rm dgit
12
13 t-refs-same-start
14 t-ref-head
15
16 LANG=C t-dgit push 2>&1 \
17         | tee /dev/stderr \
18         | grep 'package appears to be new in this suite' >/dev/null
19
20 t-dgit build
21
22 git checkout bogus
23
24 set +e
25 (set -e; DGIT_TEST_DEBUG=' ' t-dgit push --new)
26 rc=$?
27 set -e
28 if [ $rc = 0 ]; then fail "push succeeded when tree mismatch"; fi
29
30 git checkout master
31
32 t-dgit push --new
33
34 t-pushed-good master
35
36 echo ok.