clean up clone code

This commit is contained in:
Jesse Ezell 2014-03-11 13:22:00 -07:00
parent d560b9e9bd
commit 2f53196866
1 changed files with 1 additions and 1 deletions

View File

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