diff --git a/internal/gitutil/git.go b/internal/gitutil/git.go index cd4358bf..f2ab0f8a 100644 --- a/internal/gitutil/git.go +++ b/internal/gitutil/git.go @@ -31,7 +31,7 @@ func EnsureCloned(uri, destinationPath string) error { if ok, err := IsGitCloned(destinationPath); err != nil { return err } else if !ok { - _, err = Exec("", "clone", "-v", uri, destinationPath) + _, err = Exec("", "clone", "--depth=1", "--single-branch", "-v", uri, destinationPath) return err } return nil