summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-03-03 13:47:13 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-03 13:47:13 +0100
commit99b68a2aecfaa24f252f265d61b230b8e2576dd2 (patch)
treee54ed236c68b3d3cab3882634a0e6fb54f988617 /examples
parent31bc6c044091c4d65f3a6fd7078beb260c210137 (diff)
parent496b76d415b080712d7648fc6f1ff2e55d27a6a5 (diff)
downloadlibgit2-99b68a2aecfaa24f252f265d61b230b8e2576dd2.tar.gz
Merge pull request #2908 from ethomson/safe_create
Allow checkout to handle newly cloned repositories, remove `GIT_CHECKOUT_SAFE_CREATE`
Diffstat (limited to 'examples')
-rw-r--r--examples/network/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/clone.c b/examples/network/clone.c
index 6144e217e..270bb68be 100644
--- a/examples/network/clone.c
+++ b/examples/network/clone.c
@@ -82,7 +82,7 @@ int do_clone(git_repository *repo, int argc, char **argv)
}
// Set up options
- checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE_CREATE;
+ checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
checkout_opts.progress_cb = checkout_progress;
checkout_opts.progress_payload = &pd;
clone_opts.checkout_opts = checkout_opts;