diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-08 04:06:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-08 04:09:11 +0000 |
commit | 78b12c962613340f18d456e8eaef0aa217e60ce6 (patch) | |
tree | 78cf47375034c8fec16617a8b81d04ba95205ffe /src/cmd/go/testdata/script/mod_download_issue51114.txt | |
parent | Adding upstream version 1.21.10. (diff) | |
download | golang-1.21-78b12c962613340f18d456e8eaef0aa217e60ce6.tar.xz golang-1.21-78b12c962613340f18d456e8eaef0aa217e60ce6.zip |
Adding upstream version 1.21.11.upstream/1.21.11upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cmd/go/testdata/script/mod_download_issue51114.txt')
-rw-r--r-- | src/cmd/go/testdata/script/mod_download_issue51114.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/cmd/go/testdata/script/mod_download_issue51114.txt b/src/cmd/go/testdata/script/mod_download_issue51114.txt index 4d274d6..a28d467 100644 --- a/src/cmd/go/testdata/script/mod_download_issue51114.txt +++ b/src/cmd/go/testdata/script/mod_download_issue51114.txt @@ -1,8 +1,14 @@ [!net:github.com] skip [!git] skip -[!GOOS:linux] skip # Uses XDG_CONFIG_HOME -env GIT_CONFIG_GLOBAL=$WORK/.gitconfig +# Redirect git to a test-specific .gitconfig. +# GIT_CONFIG_GLOBAL suffices for git 2.32.0 and newer. +# For older git versions we also set $HOME. +env GIT_CONFIG_GLOBAL=$WORK${/}home${/}gopher${/}.gitconfig +env HOME=$WORK${/}home${/}gopher +exec git config --global --show-origin user.name +stdout 'Go Gopher' + env GOPROXY=direct ! go mod download @@ -15,6 +21,9 @@ go 1.18 require github.com/golang/notexist/subdir v0.1.0 --- $WORK/.gitconfig -- +-- $WORK/home/gopher/.gitconfig -- +[user] + name = Go Gopher + email = gopher@golang.org [url "git@github.com:"] insteadOf = https://github.com/ |