diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-14 19:26:32 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-15 09:30:05 +0100 |
commit | d6a6decd1be0515faf36256ce06c58c7d662bbd0 (patch) | |
tree | b91c4f618470c7cf1ef9547b9146d08e30df6204 /_examples/clone | |
parent | 09110d8e6d1ddb6f6a22867dcedeebd8f2262780 (diff) | |
download | go-git-d6a6decd1be0515faf36256ce06c58c7d662bbd0.tar.gz |
submodule update implementation
Diffstat (limited to '_examples/clone')
-rw-r--r-- | _examples/clone/main.go | 7 |
1 files changed, 3 insertions, 4 deletions
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) |