...

Text file src/cmd/go/testdata/script/mod_download_git_bareRepository_sha256.txt

Documentation: cmd/go/testdata/script

     1[short] skip
     2[!git] skip
     3
     4# This is a git sha256-mode copy of mod_download_git_bareRepository
     5
     6# Redirect git to a test-specific .gitconfig.
     7# GIT_CONFIG_GLOBAL suffices for git 2.32.0 and newer.
     8# For older git versions we also set $HOME.
     9env GIT_CONFIG_GLOBAL=$WORK${/}home${/}gopher${/}.gitconfig
    10env HOME=$WORK${/}home${/}gopher
    11exec git config --global --show-origin user.name
    12stdout 'Go Gopher'
    13
    14env GOPRIVATE=vcs-test.golang.org
    15
    16go mod download -x
    17
    18-- go.mod --
    19module test
    20
    21go 1.18
    22
    23require vcs-test.golang.org/git/gitrepo-sha256.git v1.2.3
    24
    25-- $WORK/home/gopher/.gitconfig --
    26[user]
    27	name = Go Gopher
    28	email = gopher@golang.org
    29[safe]
    30	bareRepository = explicit

View as plain text