Text file src/cmd/go/testdata/script/mod_download_git_bareRepository_sha256.txt

     1  [short] skip
     2  [!git] skip
     3  [!git-min-vers:v2.29] skip
     4  
     5  # This is a git sha256-mode copy of mod_download_git_bareRepository
     6  
     7  # Redirect git to a test-specific .gitconfig.
     8  # GIT_CONFIG_GLOBAL suffices for git 2.32.0 and newer.
     9  # For older git versions we also set $HOME.
    10  env GIT_CONFIG_GLOBAL=$WORK${/}home${/}gopher${/}.gitconfig
    11  env HOME=$WORK${/}home${/}gopher
    12  exec git config --global --show-origin user.name
    13  stdout 'Go Gopher'
    14  
    15  env GOPRIVATE=vcs-test.golang.org
    16  
    17  go mod download -x
    18  
    19  -- go.mod --
    20  module test
    21  
    22  go 1.18
    23  
    24  require vcs-test.golang.org/git/gitrepo-sha256.git v1.2.3
    25  
    26  -- $WORK/home/gopher/.gitconfig --
    27  [user]
    28  	name = Go Gopher
    29  	email = gopher@golang.org
    30  [safe]
    31  	bareRepository = explicit
    32  

View as plain text