...
1handle git
2
3env GIT_AUTHOR_NAME='Jay Conrod'
4env GIT_AUTHOR_EMAIL='jayconrod@google.com'
5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8at 2019-05-09T18:35:00-04:00
9
10git init
11
12git add sub
13git commit -m 'create module sub'
14git branch -m master
15
16echo 'v0.1.0'
17cp stdout status
18git add status
19git commit -a -m 'v0.1.0'
20git tag 'v0.1.0'
21
22echo 'sub/v0.0.9'
23cp stdout status
24git commit -a -m 'sub/v0.0.9'
25git tag 'sub/v0.0.9'
26
27echo 'sub/v0.0.10'
28cp stdout status
29git commit -a -m 'sub/v0.0.10'
30git tag 'sub/v0.0.10'
31
32echo 'v0.2.0'
33cp stdout status
34git commit -a -m 'v0.2.0'
35git tag 'v0.2.0'
36
37echo 'after last tag'
38cp stdout status
39git commit -a -m 'after last tag'
40
41git show-ref --tags --heads
42cmp stdout .git-refs
43
44-- .git-refs --
45c3ee5d0dfbb9bf3c4d8bb2bce24cd8d14d2d4238 refs/heads/master
462b7c4692e12c109263cab51b416fcc835ddd7eae refs/tags/sub/v0.0.10
47883885166298d79a0561d571a3044ec5db2e7c28 refs/tags/sub/v0.0.9
48db89fc573cfb939faf0aa0660671eb4cf8b8b673 refs/tags/v0.1.0
491abe41965749e50828dd41de8d12c6ebc8e4e131 refs/tags/v0.2.0
50-- sub/go.mod --
51module vcs-test.golang.org/git/prefixtagtests.git/sub
52-- sub/sub.go --
53package sub
View as plain text