diff options
author | Bryan C. Mills <bcmills@google.com> | 2023-05-08 09:15:25 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-05-12 17:56:45 +0000 |
commit | acd8dc95833182df86831ec78e7470864bdb3b88 (patch) | |
tree | e9885c7ffeb80187ff10810b06e74d2bd63d9dda | |
parent | d6cc77fa2532799609cff369af65378a83ab9030 (diff) | |
download | go-git-acd8dc95833182df86831ec78e7470864bdb3b88.tar.gz |
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>
-rw-r--r-- | src/cmd/go/testdata/script/mod_download_git_bareRepository.txt | 19 |
1 files changed, 19 insertions, 0 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 new file mode 100644 index 0000000000..8050461c65 --- /dev/null +++ b/src/cmd/go/testdata/script/mod_download_git_bareRepository.txt @@ -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 |