diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-12 23:03:47 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-12 23:04:00 +0100 |
commit | b3b6e51565dcdbf81546f1d8f0121874a4e4fce9 (patch) | |
tree | 5ad244f4b9c350367ed65d57d8881078aefe0753 /_examples/clone | |
parent | 498dbf7dc92e288641f1af1acc52704150e8a6c0 (diff) | |
download | go-git-b3b6e51565dcdbf81546f1d8f0121874a4e4fce9.tar.gz |
submodule init implementation
Diffstat (limited to '_examples/clone')
-rw-r--r-- | _examples/clone/main.go | 5 |
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) |