fix clone options init

This commit is contained in:
Jesse Ezell 2014-03-18 18:23:33 -07:00
parent 5f35f13737
commit d1e7ee53d5
1 changed files with 0 additions and 1 deletions

View File

@ -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 {