From 990be97d448a04b113fc118c64034530a7ad79d4 Mon Sep 17 00:00:00 2001 From: Jguer Date: Mon, 23 Dec 2019 20:59:37 +0000 Subject: [PATCH] fix #1135: pull and fast forward abs instead of just fetching latest head --- download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.go b/download.go index ef3e1fd1d..a95fbc1ed 100644 --- a/download.go +++ b/download.go @@ -87,7 +87,7 @@ func gitDownloadABS(url string, path string, name string) (bool, error) { return false, fmt.Errorf("error reading %s", filepath.Join(path, name, ".git")) } - cmd := passToGit(filepath.Join(path, name), "fetch") + cmd := passToGit(filepath.Join(path, name), "pull", "--ff-only") cmd.Env = append(os.Environ(), "GIT_TERMINAL_PROMPT=0") _, stderr, err := capture(cmd) if err != nil {