aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/clone/main.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-02-12 23:03:47 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-02-12 23:04:00 +0100
commitb3b6e51565dcdbf81546f1d8f0121874a4e4fce9 (patch)
tree5ad244f4b9c350367ed65d57d8881078aefe0753 /_examples/clone/main.go
parent498dbf7dc92e288641f1af1acc52704150e8a6c0 (diff)
downloadgo-git-b3b6e51565dcdbf81546f1d8f0121874a4e4fce9.tar.gz
submodule init implementation
Diffstat (limited to '_examples/clone/main.go')
-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)