chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9274ad6619769dafee5b8ddbddfc01a25b953bfc
[dgit.git]
/
tests
/
setup
/
examplegit
1
#!/bin/bash
2
set -e
3
. tests/lib
4
5
suitespecs+=' stable'
6
7
t-tstunt-parsechangelog
8
9
t-prep-newpackage example 1.0
10
11
cd $p
12
13
revision=1
14
15
push-to () {
16
t-refs-same-start
17
t-ref-head
18
t-dgit build
19
t-dgit push --new $2
20
t-pushed-good $1 $2
21
t-archive-process-incoming $2
22
}
23
24
echo ancestor >which
25
git add which
26
t-commit Ancestor '' stable
27
push-to master stable
28
29
git checkout -b stable
30
31
echo stable >which
32
git add which
33
t-commit Stable '' stable
34
push-to stable stable
35
36
git checkout master
37
38
echo sid >which
39
git add which
40
t-commit Sid
41
push-to master sid
42
43
t-setup-done 'p v suitespecs revision' "aq git mirror $p"