chiark / gitweb /
f412dd279c38409601d4601cebf3571f6a6f870b
[dgit.git] / tests / tests / forcesplit-overwrite
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 # This tests a native package with split view, including that the
6 # pseudomerges end up in the right place.
7
8 t-setup-import examplegit
9
10 t-select-package example
11 cd example
12
13 suite=stable
14
15 t-commit 'No changes, just send to stable' '' stable
16
17 t-refs-same-start
18 t-ref-head
19
20 try () {
21         t-dgit -wgf --split-view "$@" --dgit-view-save=split.p \
22                 push-source stable
23 }
24
25 t-expect-fail E:'maintainer view tag.*not fast forward' \
26 try
27
28 try --overwrite=1.2
29 git branch -f split.b split.p
30
31 t-ref-head
32 t-split-unchanged-pushed-good $suite
33
34 t-ok