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

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

View as plain text