aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/git/git.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@gmail.com>2017-06-27 11:55:53 +0200
committerGitHub <noreply@github.com>2017-06-27 11:55:53 +0200
commit65a34e4c2d820bb42758569a200e94e7a5c781cd (patch)
treef7575847b3d26d2a4b2be9799f2720fc4a86aeeb /pkg/git/git.go
parent274bfdcec9b3acca02438362cefac2b94d6b9856 (diff)
parent3ad6daa90a66d74de8a52185d7ecae04f1d69b87 (diff)
Merge pull request #247 from xairy/up-maintainers
report: add get maintainers function
Diffstat (limited to 'pkg/git/git.go')
-rw-r--r--pkg/git/git.go3
1 files changed, 1 insertions, 2 deletions
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,