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

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

View as plain text