...

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

Documentation: cmd/go/testdata/vcstest/git

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

View as plain text