blob: 2bfa5d5a30871cba470689348d2e9d439996d8cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
set -e
. tests/lib
t-prep-newpackage pari-extra 3-1
cd $p
t-refs-same-start
t-ref-head
LC_MESSAGES=C t-dgit push 2>&1 \
| tee /dev/stderr \
| grep 'package appears to be new in this suite' >/dev/null
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
echo ok.
|