summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/go/testdata/script/mod_download_git_bareRepository.txt19
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