summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirko Nosenzo <[email protected]>2016-07-24 14:20:12 +0200
committerMirko Nosenzo <[email protected]>2016-07-24 14:20:12 +0200
commitaa7dfab1cf7534f7a3b99c2688c874b0af09d9f4 (patch)
tree278ef579a312bd41e8a4cbd961420d9731237e04
parent6fa4c8ea15887c9a8fc96e9d052112a4ef5170cd (diff)
Clone Fix
freeCheckoutOpts called twice
-rw-r--r--clone.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/clone.go b/clone.go
index e80d14d..1ff5124 100644
--- a/clone.go
+++ b/clone.go
@@ -41,7 +41,6 @@ func Clone(url string, path string, options *CloneOptions) (*Repository, error)
var ptr *C.git_repository
ret := C.git_clone(&ptr, curl, cpath, copts)
- freeCheckoutOpts(&copts.checkout_opts)
if ret < 0 {
return nil, MakeGitError(ret)