mirror of
https://github.com/golang/go
synced 2024-11-18 13:24:39 -07:00
cmd/go: fix "go get -u" for git repositories.
CL 10869046 changed cmd/go to checkout master branch, so for "go get -u" to work, it must "git pull" instead of "git fetch". Added "--ff-only" so that it won't accidentally overwrite user changes. R=dsymonds CC=golang-dev https://golang.org/cl/10907043
This commit is contained in:
parent
3c3ce8e7fb
commit
8b16a8bbc1
@ -91,7 +91,7 @@ var vcsGit = &vcsCmd{
|
|||||||
cmd: "git",
|
cmd: "git",
|
||||||
|
|
||||||
createCmd: "clone {repo} {dir}",
|
createCmd: "clone {repo} {dir}",
|
||||||
downloadCmd: "fetch",
|
downloadCmd: "pull --ff-only",
|
||||||
|
|
||||||
tagCmd: []tagCmd{
|
tagCmd: []tagCmd{
|
||||||
// tags/xxx matches a git tag named xxx
|
// tags/xxx matches a git tag named xxx
|
||||||
|
Loading…
Reference in New Issue
Block a user