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