aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_download_git_decorate_full.txt
blob: 3b19acc1b152a0e560b7eec3acaca34c0b910a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
env GO111MODULE=on

[!net] skip
[!exec:git] skip

env GOPROXY=direct
env HOME=$WORK/home/gopher


go env GOPROXY
stdout 'direct'

exec git config --get log.decorate
stdout 'full'

# Test that Git log with user's global config '~/gitconfig' has log.decorate=full
# go mod download has an error 'v1.x.y is not a tag'
# with go1.16.14: 
# `go1.16.14 list -m vcs-test.golang.org/git/gitrepo1.git@v1.2.3`
# will output with error:
# go list -m: vcs-test.golang.org/git/gitrepo1.git@v1.2.3: invalid version: unknown revision v1.2.3
# See golang/go#51312.
go list -m vcs-test.golang.org/git/gitrepo1.git@v1.2.3
stdout 'vcs-test.golang.org/git/gitrepo1.git v1.2.3'

-- $WORK/home/gopher/.gitconfig --
[log]
	decorate = full