From 5dfc6a96cc69cd63ba7ff3be90d909391cf717b3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 18 Oct 2016 01:35:59 +0100 Subject: Test suite: overwrite-splitbrains: New test Signed-off-by: Ian Jackson --- tests/tests/overwrite-splitbrains | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 tests/tests/overwrite-splitbrains (limited to 'tests/tests/overwrite-splitbrains') diff --git a/tests/tests/overwrite-splitbrains b/tests/tests/overwrite-splitbrains new file mode 100755 index 0000000..c0c7470 --- /dev/null +++ b/tests/tests/overwrite-splitbrains @@ -0,0 +1,27 @@ +#!/bin/bash +set -e +. tests/lib + +t-tstunt-parsechangelog + +t-gbp-example-prep-no-ff +t-newtag + +t-dgit --quilt=gbp build-source + +t-dgit fetch + +t-refs-same-start +t-ref-head + +t-expect-fail 'check failed (maybe --overwrite is needed' \ +t-dgit --quilt=gbp push + +t-refs-same-start +t-ref-head + +t-dgit --quilt=gbp --overwrite push + +t-gbp-pushed-good + +echo ok. -- cgit v1.2.3