summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-01-29 15:17:54 +0100
committerCarlos Martín Nieto <[email protected]>2015-01-29 15:17:54 +0100
commit2bcbe6bd2dc230539b8a909606107d65a706bd66 (patch)
treeca2678a781eeab69e95b9c433e70472e4242b4be /clone.go
parent2b17dffc07f5bc0c79ef4eff805ac3ab1cd4d004 (diff)
parent92a1f92d912cdb5f68da8c1e5e3a4d1ebfd282db (diff)
Merge commit '92a1f92d912cdb5f68da8c1e5e3a4d1ebfd282db'
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/clone.go b/clone.go
index 2e0fcce..b796b6e 100644
--- a/clone.go
+++ b/clone.go
@@ -30,6 +30,7 @@ func Clone(url string, path string, options *CloneOptions) (*Repository, error)
var copts C.git_clone_options
populateCloneOptions(&copts, options)
+ defer freeCheckoutOpts(&copts.checkout_opts)
if len(options.CheckoutBranch) != 0 {
copts.checkout_branch = C.CString(options.CheckoutBranch)