]> Cypherpunks repositories - gostls13.git/commitdiff
goinstall: Use 'git pull' instead of 'git checkout' when updating a git repo.
authorMichael Hoisie <hoisie@gmail.com>
Tue, 1 Jun 2010 21:27:45 +0000 (14:27 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 1 Jun 2010 21:27:45 +0000 (14:27 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/1395041

src/cmd/goinstall/download.go

index df1cde6e9cb7615abcabc5038cfdb2a3bcd95e21..d8d999d7887636d3b3b5d8a2f92d792e4908b2a6 100644 (file)
@@ -102,7 +102,7 @@ var git = vcs{
        cmd:            "git",
        metadir:        ".git",
        clone:          "clone",
-       update:         "checkout",
+       update:         "pull",
        pull:           "fetch",
        log:            "log",
        logLimitFlag:   "-n1",