Skip to content

Commit

Permalink
fix #1135: pull and fast forward abs instead of just fetching latest …
Browse files Browse the repository at this point in the history
…head
  • Loading branch information
Jguer committed Dec 23, 2019
1 parent 6cb5587 commit 990be97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 990be97

Please sign in to comment.