1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:00:03 -07:00

cmd/go: add a regression test for Git configurations with safe.bareRepository=explicit

Change-Id: I394265a4bf849ec89ac44c67aeaaaca801e46caa
Reviewed-on: https://go-review.googlesource.com/c/go/+/493476
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Emily Shaffer <emilyshaffer@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Bryan C. Mills 2023-05-08 09:15:25 -04:00 committed by Gopher Robot
parent d6cc77fa25
commit acd8dc9583

View File

@ -0,0 +1,19 @@
[short] skip
[!git] skip
[!GOOS:linux] skip # Uses XDG_CONFIG_HOME
env GIT_CONFIG_GLOBAL=$WORK/.gitconfig
env GOPRIVATE=vcs-test.golang.org
go mod download -x
-- go.mod --
module test
go 1.18
require vcs-test.golang.org/git/gitrepo1.git v1.2.3
-- $WORK/.gitconfig --
[safe]
bareRepository = explicit