aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/checkout/main.go
diff options
context:
space:
mode:
authormarwan-at-work <marwan.sulaiman@work.co>2017-04-06 16:25:29 -0400
committermarwan-at-work <marwan.sulaiman@work.co>2017-04-06 16:26:38 -0400
commite0b296d0d0d235ad848cce7bc19130505c33d97b (patch)
tree091972513babd4beca29d0318058facb678e5d1c /_examples/checkout/main.go
parent2b503ad6cd32fa8e265e36dd09ea76d53bc26950 (diff)
downloadgo-git-e0b296d0d0d235ad848cce7bc19130505c33d97b.tar.gz
pr-fixes
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)