]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't refuse to update a present package only because of its source configuration
authorDavid Symonds <dsymonds@golang.org>
Wed, 16 May 2018 23:39:21 +0000 (09:39 +1000)
committerDavid Symonds <dsymonds@golang.org>
Thu, 7 Jun 2018 21:50:50 +0000 (21:50 +0000)
commit17f54231e86591174b964c5ba93f9d578e2bfa01
treeb68113be0f32e021390c9cd7700cdafc5cc1abd6
parent9417ff55c35e0a1623af2a05c6e714c660ad6b4f
cmd/go: don't refuse to update a present package only because of its source configuration

If a package is checked out in the right place, but uses, for instance,
an unusual Git remote configuration, don't refuse to update just because
cmd/go can't parse it. In most cases, `git pull -ff-only` (or the
equivalent in other VCSes) works just fine.

Updates #25432.

Change-Id: I1952a0e6e03f185f34029b186e1756c9549689e1
Reviewed-on: https://go-review.googlesource.com/113456
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/get/get.go