aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/clone/main.go
diff options
context:
space:
mode:
Diffstat (limited to '_examples/clone/main.go')
-rw-r--r--_examples/clone/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/_examples/clone/main.go b/_examples/clone/main.go
index 7d173a6..bcdb6a9 100644
--- a/_examples/clone/main.go
+++ b/_examples/clone/main.go
@@ -14,11 +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,
- Depth: 1,
+ URL: url,
+ RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
})
CheckIfError(err)