...
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.
7env GIT_CONFIG_GLOBAL=$WORK${/}home${/}gopher${/}.gitconfig
8env HOME=$WORK${/}home${/}gopher
9exec git config --global --show-origin user.name
10stdout 'Go Gopher'
11
12env GOPRIVATE=vcs-test.golang.org
13
14go mod download -x
15
16-- go.mod --
17module test
18
19go 1.18
20
21require 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
View as plain text