chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfixes (now tests/tests/drs-clone-nogit works)
[dgit.git]
/
tests
/
tests
/
push-newpackage
diff --git
a/tests/tests/push-newpackage
b/tests/tests/push-newpackage
index eea5685a359a65bbc9e2413430c47adcffdf7da9..9954b3fc9fb424cc9a763fc795bced4743812210 100755
(executable)
--- 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
| 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
t-dgit push --new
t-pushed-good master