]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch/codehost: quote arguments to commands printed from -x
authorBryan C. Mills <bcmills@google.com>
Tue, 31 Jul 2018 18:37:43 +0000 (14:37 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 31 Jul 2018 19:14:46 +0000 (19:14 +0000)
commitf152f83a6e3aba0eb7d5ce2f0c73463ac307ec55
tree59d353d5fc909a4a73e8760e59d0f476bb019214
parentce06f5a222b48fd16461730c4b0dcb75b005609f
cmd/go/internal/modfetch/codehost: quote arguments to commands printed from -x

Some of the arguments — particularly format strings passed to git commands — may
contain spaces, and it's useful to be able to paste commands from 'go get -x
foo' directly into a shell to reproduce their output.

Change-Id: I4f0c0b4e05db8b5232458e9a271f2ccbb665e85a
Reviewed-on: https://go-review.googlesource.com/126955
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/modfetch/codehost/codehost.go