summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-03-11 13:22:00 -0700
committerJesse Ezell <[email protected]>2014-03-11 13:22:00 -0700
commit2f531968667f96fd573590f2609589cbdb14a480 (patch)
treeae21f060afca19a12182a23f4c668bd5d85d5e3c
parentd560b9e9bd7162334f7122dadd02cd0a075e22ab (diff)
clean up clone code
-rw-r--r--clone.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/clone.go b/clone.go
index 51dbd65..c2abbe5 100644
--- a/clone.go
+++ b/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