chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
git-debrebase: in classify, call get_differs with args in right oder
[dgit.git]
/
tests
/
tests
/
push-newpackage
1
#!/bin/bash
2
set -e
3
. tests/lib
4
5
t-prep-newpackage pari-extra 3-1
6
7
cd $p
8
t-refs-same-start
9
t-ref-head
10
11
t-expect-push-fail 'package appears to be new in this suite' \
12
t-dgit push
13
14
t-dgit build
15
16
git checkout bogus
17
18
set +e
19
(set -e; DGIT_TEST_DEBUG=' ' t-dgit push --new)
20
rc=$?
21
set -e
22
if [ $rc = 0 ]; then fail "push succeeded when tree mismatch"; fi
23
24
git checkout master
25
26
t-dgit push --new
27
28
t-pushed-good master
29
30
t-ok