aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/checkout/main.go
diff options
context:
space:
mode:
Diffstat (limited to '_examples/checkout/main.go')
-rw-r--r--_examples/checkout/main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/_examples/checkout/main.go b/_examples/checkout/main.go
index 3282f14..24f926a 100644
--- a/_examples/checkout/main.go
+++ b/_examples/checkout/main.go
@@ -15,11 +15,10 @@ func main() {
url, directory, commitRef := os.Args[1], os.Args[2], os.Args[3]
// Clone the given repository to the given directory
- Info("git clone %s %s --recursive", url, directory)
+ Info("git clone %s %s", url, directory)
r, err := git.PlainClone(directory, false, &git.CloneOptions{
- URL: url,
- RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
+ URL: url,
})
CheckIfError(err)