aboutsummaryrefslogtreecommitdiffstats
path: root/_examples
diff options
context:
space:
mode:
Diffstat (limited to '_examples')
-rw-r--r--_examples/clone/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/_examples/clone/main.go b/_examples/clone/main.go
index 7d173a6..18d8a55 100644
--- a/_examples/clone/main.go
+++ b/_examples/clone/main.go
@@ -17,8 +17,9 @@ func main() {
Info("git clone %s %s", url, directory)
r, err := git.PlainClone(directory, false, &git.CloneOptions{
- URL: url,
- Depth: 1,
+ URL: url,
+ RecursiveSubmodules: true,
+ Depth: 1,
})
CheckIfError(err)