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

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

View as plain text