...
1handle git
2
3env GIT_AUTHOR_NAME='Sam Thanawalla'
4env GIT_AUTHOR_EMAIL='samthanawalla@google.com'
5env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8at 2019-10-07T14:15:32-04:00
9
10git init
11
12git add subdir
13git commit -m 'initial commit'
14git branch -m master
15git tag subdir/v2.0.0
16git show-ref --tags --heads
17cmp stdout .git-refs
18
19-- .git-refs --
205212d800bfd1f6377da46aee6cbceca2f60d4ea6 refs/heads/master
215212d800bfd1f6377da46aee6cbceca2f60d4ea6 refs/tags/subdir/v2.0.0
22-- subdir/go.mod --
23module vcs-test.golang.org/go/gitreposubdirv2/v2
24
25go 1.23
26-- subdir/hello.go --
27package greeterv2
28
29func Hello() string {
30 return "hello, world v2"
31}
View as plain text