]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/vcs: don’t new errors ahead of time in gitRemoteRepo
authorJes Cok <xigua67damn@gmail.com>
Mon, 25 Sep 2023 15:11:04 +0000 (15:11 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 27 Sep 2023 14:19:58 +0000 (14:19 +0000)
commit33d3625bf8d0aea69c1a64f8da2ff4efe071d7b0
treeb03863aa87a7587b61cd92d3f8f376a8b8276214
parent66959a59342d323273f398e92165e2ec165ef3e8
cmd/go/internal/vcs: don’t new errors ahead of time in gitRemoteRepo

Also make 'cmd' a const for it is in fact immutable.

Change-Id: I3373daa1775e863a378355a355325a7fbdf90485
GitHub-Last-Rev: f6698174f53988274c75af83acb267741676b712
GitHub-Pull-Request: golang/go#63155
Reviewed-on: https://go-review.googlesource.com/c/go/+/530395
Auto-Submit: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/vcs/vcs.go