From 0c77ba96dadc343c8f4a1b6fedd9ee46108815a2 Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Tue, 1 Jun 2010 14:27:45 -0700 Subject: [PATCH] goinstall: Use 'git pull' instead of 'git checkout' when updating a git repo. R=rsc CC=golang-dev https://golang.org/cl/1395041 --- src/cmd/goinstall/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/goinstall/download.go b/src/cmd/goinstall/download.go index df1cde6e9cb..d8d999d7887 100644 --- a/src/cmd/goinstall/download.go +++ b/src/cmd/goinstall/download.go @@ -102,7 +102,7 @@ var git = vcs{ cmd: "git", metadir: ".git", clone: "clone", - update: "checkout", + update: "pull", pull: "fetch", log: "log", logLimitFlag: "-n1",