fix clone options init
This commit is contained in:
parent
5f35f13737
commit
d1e7ee53d5
1
clone.go
1
clone.go
|
@ -55,7 +55,6 @@ func Clone(url string, path string, options *CloneOptions) (*Repository, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func populateCloneOptions(ptr *C.git_clone_options, opts *CloneOptions) {
|
func populateCloneOptions(ptr *C.git_clone_options, opts *CloneOptions) {
|
||||||
ptr = &C.git_clone_options{}
|
|
||||||
C.git_clone_init_options(ptr, C.GIT_CLONE_OPTIONS_VERSION)
|
C.git_clone_init_options(ptr, C.GIT_CLONE_OPTIONS_VERSION)
|
||||||
|
|
||||||
if opts == nil {
|
if opts == nil {
|
||||||
|
|
Loading…
Reference in New Issue