Text file src/cmd/go/testdata/vcstest/git/gitreposubdirv2.txt

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

View as plain text