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

     1  handle git
     2  
     3  env GIT_AUTHOR_NAME='Bryan C. Mills'
     4  env GIT_AUTHOR_EMAIL='bcmills@google.com'
     5  env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
     6  env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
     7  
     8  at 2023-11-14T13:00:00-05:00
     9  
    10  git init
    11  
    12  git add go.mod nested
    13  git commit -m 'nested: add go.mod'
    14  git branch -m main
    15  
    16  git tag has-nested
    17  
    18  at 2023-11-14T13:00:01-05:00
    19  
    20  git rm -r nested
    21  git commit -m 'nested: delete subdirectory'
    22  
    23  git show-ref --tags --heads
    24  cmp stdout .git-refs
    25  
    26  git log --pretty=oneline
    27  cmp stdout .git-log
    28  
    29  -- .git-refs --
    30  f213069baa68ec26412fb373c7cf6669db1f8e69 refs/heads/main
    31  08a4fa6bb9c04ffba03b26ae427b0d6335d90a2a refs/tags/has-nested
    32  -- .git-log --
    33  f213069baa68ec26412fb373c7cf6669db1f8e69 nested: delete subdirectory
    34  08a4fa6bb9c04ffba03b26ae427b0d6335d90a2a nested: add go.mod
    35  -- go.mod --
    36  module vcs-test.golang.org/git/issue61415.git
    37  
    38  go 1.20
    39  -- nested/go.mod --
    40  module vcs-test.golang.org/git/issue61415.git/nested
    41  
    42  go 1.20
    43  

View as plain text