File: examplegit

package info (click to toggle)
dgit 3.11~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,860 kB
  • ctags: 522
  • sloc: perl: 7,502; sh: 2,793; makefile: 113
file content (53 lines) | stat: -rwxr-xr-x 711 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
. tests/lib

suitespecs+=' stable testing'

t-tstunt-parsechangelog

t-prep-newpackage example 1.0

cd $p

revision=1

push-to () {
	t-refs-same-start
	t-ref-head
	t-dgit build
	t-dgit push --new $2
	t-pushed-good $1 $2
	t-archive-process-incoming $2
}

echo ancestor >which
git add which
t-commit Ancestor '' stable
push-to master stable

git checkout -b stable

echo stable >which
git add which
t-commit Stable '' stable
push-to stable stable

git checkout master

majorv=2
revision=0

echo sid >which
git add which
t-commit Sid
push-to master sid

echo sid-again >>which
git add which
t-commit Sid
push-to master sid

t-setup-done 'p v suitespecs majorv revision' "aq git mirror $p"

t-ok