]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/go: pass --no-decorate when listing git tags for a commit
authorhidu <duv123@gmail.com>
Thu, 3 Mar 2022 05:33:38 +0000 (13:33 +0800)
committerHeschi Kreinick <heschi@google.com>
Wed, 6 Jul 2022 19:34:16 +0000 (19:34 +0000)
commit1872c338a3fc9a91df1abdfe9f9d94fe2b907719
treeb52d1f9ac14bd5d92d28d2b04ea7dd23a9fc6b95
parentf86c6b9a32daacef5169bba0d94cbd9da6813bbe
[release-branch.go1.18] cmd/go: pass --no-decorate when listing git tags for a commit

This avoids a parse error when the user's global .gitconfig sets
log.decorate to true.

Updates #51312.
Fixes #53588.

Change-Id: Ic47b0f604c0c3a404ec50d6e09f4e138045ac2f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/387835
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
(cherry picked from commit a30f4346674ec43bf576e6f56a9cd1c7ca482e1f)
Reviewed-on: https://go-review.googlesource.com/c/go/+/414874
src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/testdata/script/mod_download_git_decorate_full.txt [new file with mode: 0644]