From 2b7efe03406411dd8fe25bcc15b0783313097692 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Wed, 17 Oct 2012 10:15:51 -0700 Subject: [PATCH] Example: compile fixes (not yet working) --- examples/network/clone.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/network/clone.c b/examples/network/clone.c index fb571bd3a..99e9ae9a2 100644 --- a/examples/network/clone.c +++ b/examples/network/clone.c @@ -24,8 +24,7 @@ static void *clone_thread(void *ptr) // Kick off the clone data->ret = git_clone(&repo, data->url, data->path, - &data->fetch_stats, &data->checkout_stats, - &data->opts); + &data->fetch_stats, &data->opts); if (repo) git_repository_free(repo); data->finished = 1; @@ -46,7 +45,7 @@ int do_clone(git_repository *repo, int argc, char **argv) // Data for background thread data.url = argv[1]; data.path = argv[2]; - data.opts.disable_filters = 1; + data.opts.checkout_strategy = GIT_CHECKOUT_CREATE_MISSING; printf("Cloning '%s' to '%s'\n", data.url, data.path); // Create the worker thread