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_git_bareRepository.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_git_bareRepository.txt')
-rw-r--r-- | src/cmd/go/testdata/script/mod_download_git_bareRepository.txt | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/cmd/go/testdata/script/mod_download_git_bareRepository.txt b/src/cmd/go/testdata/script/mod_download_git_bareRepository.txt index 8050461..a61283c 100644 --- a/src/cmd/go/testdata/script/mod_download_git_bareRepository.txt +++ b/src/cmd/go/testdata/script/mod_download_git_bareRepository.txt @@ -1,8 +1,14 @@ [short] 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 GOPRIVATE=vcs-test.golang.org go mod download -x @@ -14,6 +20,9 @@ go 1.18 require vcs-test.golang.org/git/gitrepo1.git v1.2.3 --- $WORK/.gitconfig -- +-- $WORK/home/gopher/.gitconfig -- +[user] + name = Go Gopher + email = gopher@golang.org [safe] -bareRepository = explicit + bareRepository = explicit |