clean up clone code
This commit is contained in:
parent
d560b9e9bd
commit
2f53196866
2
clone.go
2
clone.go
|
@ -56,7 +56,7 @@ func Clone(url string, path string, options *CloneOptions) (*Repository, error)
|
|||
|
||||
func populateCloneOptions(ptr *C.git_clone_options, opts *CloneOptions) {
|
||||
ptr = &C.git_clone_options{}
|
||||
C.git_clone_init_options(ptr, 1)
|
||||
C.git_clone_init_options(ptr, C.GIT_CLONE_OPTIONS_VERSION)
|
||||
|
||||
if opts == nil {
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue