blob: 9954b3fc9fb424cc9a763fc795bced4743812210 (
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
32
33
34
35
36
|
#!/bin/bash
set -e
. tests/lib
t-archive-none pari-extra
t-git-none
t-worktree 3-1
v=3-1
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
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.
|