chiark / gitweb /
test suite: setup/gbp: Make the result the master branch
[dgit.git] / tests / setup / gbp
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-archive-none example
6 t-git-none
7 t-worktree 1.0
8
9 cd $p
10
11 : '----- construct an unpatched branch with patches -----'
12
13 git checkout patch-queue/quilt-tip
14 gbp pq export
15 : 'now on quilt-tip'
16 git add debian/patches
17 git commit -m 'Commit patch queue'
18
19 : '----- construct an upstream branch -----'
20
21 git checkout --orphan upstream
22 git reset --hard
23 git clean -xdf
24
25 tar --strip-components=1 -xf $troot/pkg-srcs/${p}_1.0.orig.tar.gz
26
27 mkdir docs
28 cd docs
29 tar --strip-components=1 -xf $troot/pkg-srcs/${p}_1.0.orig-docs.tar.gz
30 cd ..
31
32 git add -Af .
33 git commit -m 'Import 1.0'
34 git tag upstream/1.0
35
36 git checkout quilt-tip
37 t-git-pseudo-merge -m 'gbp-orig pseudomerge' upstream
38
39 v=1.0-1
40
41 git checkout -B master
42
43 cd ..
44
45 t-setup-done 'v' "$(echo $p*) git mirror aq" '
46         t-select-package example
47         t-git-next-date
48 '