summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-10-17 10:15:51 -0700
committerBen Straub <bs@github.com>2012-10-19 19:36:22 -0700
commit2b7efe03406411dd8fe25bcc15b0783313097692 (patch)
treed4a79b9ea5f281f8a5d8f21645668e6fa8054c34 /examples
parent1f7c74187328e6661fc3cab88b5d6fddf83bdf0d (diff)
downloadlibgit2-2b7efe03406411dd8fe25bcc15b0783313097692.tar.gz
Example: compile fixes (not yet working)
Diffstat (limited to 'examples')
-rw-r--r--examples/network/clone.c5
1 files 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