summaryrefslogtreecommitdiff
path: root/tests/tests/forcesplit-overwrite
blob: 58262875f46edea73c8f26fc3ed3a286c1c24885 (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

# This tests a native package with split view, including that the
# pseudomerges end up in the right place.

t-setup-import examplegit

cd $p

suite=stable

t-commit 'No changes, just send to stable' '' stable

t-refs-same-start
t-ref-head

try () {
	t-dgit -wgf --split-view "$@" --dgit-view-save=split.p \
		push-source stable
}

t-expect-fail E:'maintainer view tag.*not fast forward' \
try

t-expect-fail F:'debian/changelog does not mention 1.2' \
try --overwrite

try --overwrite=1.2
git branch -f split.b split.p

t-ref-head
t-split-unchanged-pushed-good $suite

t-ok