parent
6fa4c8ea15
commit
aa7dfab1cf
1
clone.go
1
clone.go
|
@ -41,7 +41,6 @@ func Clone(url string, path string, options *CloneOptions) (*Repository, error)
|
||||||
|
|
||||||
var ptr *C.git_repository
|
var ptr *C.git_repository
|
||||||
ret := C.git_clone(&ptr, curl, cpath, copts)
|
ret := C.git_clone(&ptr, curl, cpath, copts)
|
||||||
freeCheckoutOpts(&copts.checkout_opts)
|
|
||||||
|
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
return nil, MakeGitError(ret)
|
return nil, MakeGitError(ret)
|
||||||
|
|
Loading…
Reference in New Issue