]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] 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)
committerGopher Robot <gobot@golang.org>
Thu, 16 May 2024 01:44:02 +0000 (01:44 +0000)
commite9f3c9b7cd223c977e10515a03db217ce828530d
treeb01b9b4fe1f57f921aaef732cceb6b1233d02dcb
parenta6023db835ca61f363c5775824af48d9436f4fca
[release-branch.go1.21] 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.

For #53955.
For #64603.
Fixes #64586

Change-Id: I1a954975a3d8300e8b4dca045d3a15438a0407ec
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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/585816
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org>
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