]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/go: fix buildvcs when using older git versions
authorMark Pulford <mark@kyne.com.au>
Sun, 27 Feb 2022 12:52:22 +0000 (23:22 +1030)
committerDmitri Shuralyov <dmitshur@golang.org>
Thu, 10 Mar 2022 23:58:18 +0000 (23:58 +0000)
commit1e4dc06f1ac1caa36eefb9eb0835010a66d9f29e
treeca3f0c2a7399459f475a0e84728501027538d293
parentd10b8192c0eeabb574b7f198917a656b6fa51c38
[release-branch.go1.18] cmd/go: fix buildvcs when using older git versions

Git versions before v2.10.0 do not support --no-show-signature.
Using "-c" allows Git to ignore the configuration option if it does not
exist.

Fixes #51253

Change-Id: I2b1adaca0eb18ae31f2e1119e354ce515b00cfc2
Reviewed-on: https://go-review.googlesource.com/c/go/+/388194
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
(cherry picked from commit 7026eeb8cfdc5801adddaaa678fb6495a998db0e)
Reviewed-on: https://go-review.googlesource.com/c/go/+/391354
src/cmd/go/internal/vcs/vcs.go
src/cmd/go/testdata/script/version_buildvcs_git.txt