From 17a9214307250b5fd2769385c73b723d55a26dab Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Wed, 15 Oct 2014 15:43:02 +0200 Subject: Update to libgit2 master The option to ignore the server's certificate has been removed, replaced witha callback for the user to perform their own checking. Remote.Fetch() now performs opportunistic updates and takes a list of refspecs to use as the active set for a particular fetch. --- clone.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'clone.go') diff --git a/clone.go b/clone.go index 4acf170..958e65d 100644 --- a/clone.go +++ b/clone.go @@ -56,11 +56,7 @@ func populateCloneOptions(ptr *C.git_clone_options, opts *CloneOptions) { } populateCheckoutOpts(&ptr.checkout_opts, opts.CheckoutOpts) populateRemoteCallbacks(&ptr.remote_callbacks, opts.RemoteCallbacks) - if opts.Bare { - ptr.bare = 1 - } else { - ptr.bare = 0 - } + ptr.bare = cbool(opts.Bare) if opts.RemoteCreateCallback != nil { ptr.remote_cb = opts.RemoteCreateCallback -- cgit v1.2.3