]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: set global .gitconfig location more robustly in tests
authorBryan C. Mills <bcmills@google.com>
Thu, 7 Dec 2023 15:24:55 +0000 (10:24 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 7 Dec 2023 16:37:00 +0000 (16:37 +0000)
commit2e4d9a18011a65c42a371bad7b4125acb3c0bc4e
treec3d7d69668e2aa9eb76862bc3c37e41240a5eeb6
parent5e724ccb2b092a6bc294b63c4e33ed1da317ca87
cmd/go: set global .gitconfig location more robustly in tests

Also confirm that setting the location actually worked before
proceeding with the rest of the test.

This fixes a test failure with git versions older than 2.32.0.

Updates #53955.
Fixes #64603.

Change-Id: I1a954975a3d8300e8b4dca045d3a15438a0407ec
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/548215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
src/cmd/go/testdata/script/get_issue53955.txt
src/cmd/go/testdata/script/mod_download_git_bareRepository.txt
src/cmd/go/testdata/script/mod_download_git_decorate_full.txt
src/cmd/go/testdata/script/mod_download_issue51114.txt
src/cmd/go/testdata/script/mod_download_private_vcs.txt