set -e
. tests/lib
+t-tstunt-parsechangelog
+
+t-newtag
+
t-gbp-example-prep
t-expect-fail 'quilt fixup cannot be linear' \
t-expect-fail 'specifies a different tree to your HEAD commit' \
t-dgit push
-exit 0
-
-===
+test-push () {
+ t-refs-same-start
+ t-ref-head
-want to
+ t-dgit --quilt=gbp push
- do push
- t-pushed-good XXX need to do something more subtle than check our branch is in repo now
+ t-gbp-pushed-good
+}
- check that
- - we didn't update caller's branch
+test-push
- do fetch
- check that this didn't update dgit remote ref
-
- check that Dgit hash in dsc refers to tree identical
- to dpkg-source -x
+echo wombat >>debian/pointless-for-dgit-test
+git add debian/pointless-for-dgit-test
+git commit -m 'Pointless 2'
- check that that tree
- - has patches applied (reuse rules build magic)
- - has .gitignore edited
+t-commit 'Check psuedomerge' 1.0-3
-make a new change
+t-dgit --quilt=gbp --clean=git build-source
-push it
+test-push
-check that the synthetic fast forward worked
+exit 0