...

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

View as plain text