From 3ad6daa90a66d74de8a52185d7ecae04f1d69b87 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 22 Jun 2017 13:21:33 +0200 Subject: report: add get maintainers function --- pkg/git/git.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/git') diff --git a/pkg/git/git.go b/pkg/git/git.go index 5c91c6040..29ebcbadc 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -36,7 +36,7 @@ func Poll(dir, repo, branch string) (string, error) { return "", err } } - if _, err := osutil.RunCmd(timeout, dir, "git", "fetch", "--no-tags", "--depth", "1"); err != nil { + if _, err := osutil.RunCmd(timeout, dir, "git", "fetch", "--no-tags"); err != nil { // Something else is wrong, re-clone. if err := clone(dir, repo, branch); err != nil { return "", err @@ -58,7 +58,6 @@ func clone(dir, repo, branch string) error { args := []string{ "clone", repo, - "--depth", "1", "--single-branch", "--branch", branch, dir, -- cgit mrf-deployment