From d6a6decd1be0515faf36256ce06c58c7d662bbd0 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 14 Feb 2017 19:26:32 +0100 Subject: submodule update implementation --- _examples/clone/main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '_examples') diff --git a/_examples/clone/main.go b/_examples/clone/main.go index 18d8a55..d4d3880 100644 --- a/_examples/clone/main.go +++ b/_examples/clone/main.go @@ -14,12 +14,11 @@ func main() { directory := os.Args[2] // Clone the given repository to the given directory - Info("git clone %s %s", url, directory) + Info("git clone %s %s --recursive", url, directory) r, err := git.PlainClone(directory, false, &git.CloneOptions{ - URL: url, - RecursiveSubmodules: true, - Depth: 1, + URL: url, + RecurseSubmodules: git.DefaultRecursivity, }) CheckIfError(err) -- cgit