]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fixup for parsing SCP-like addresses
authorDmitri Shuralyov <shurcooL@gmail.com>
Thu, 26 May 2016 06:22:11 +0000 (23:22 -0700)
committerAndrew Gerrand <adg@golang.org>
Fri, 27 May 2016 06:28:40 +0000 (06:28 +0000)
commite9228dd9490c3d4827170abeb8c82e68c175ecf0
treeb37b66edb4b66d11000580cddfbc34d1d679571e
parent20803b845f26111eb9281f8ece98383d48ea1b3f
cmd/go: fixup for parsing SCP-like addresses

This is a fixup change for commit 5cd294480364eb166751838a3df8f58649c214e1
that added parsing of SCP-like addresses. To get the expected output
from (*url.URL).String(), Path needs to be set, not RawPath.

Add a test for this, since it has already regressed multiple times.

Updates #11457.

Change-Id: I806f5abbd3cf65e5bdcef01aab872caa8a5b8891
Reviewed-on: https://go-review.googlesource.com/23447
Run-TryBot: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/go/go_test.go
src/cmd/go/vcs.go