From c8a3e46192f6340116762123e955ab7fcf4bcac7 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 15 Jun 2017 18:22:50 +0200 Subject: pkg/git: fix git fetch command line --- pkg/git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/git') diff --git a/pkg/git/git.go b/pkg/git/git.go index 8ee05f9fe..8e492177a 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -19,7 +19,7 @@ const timeout = time.Hour // timeout for all git invocations // Returns hash of the HEAD commit in the specified branch. func Poll(dir, repo, branch string) (string, error) { osutil.RunCmd(timeout, dir, "git", "reset", "--hard") - if _, err := osutil.RunCmd(timeout, dir, "git", "fetch", "--no-tags", "--depth=", "1"); err != nil { + if _, err := osutil.RunCmd(timeout, dir, "git", "fetch", "--no-tags", "--depth", "1"); err != nil { if err := os.RemoveAll(dir); err != nil { return "", fmt.Errorf("failed to remove repo dir: %v", err) } -- cgit mrf-deployment