mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 20:42:32 +00:00
clone: drop now unnecessary SAFE_CREATE
This commit is contained in:
parent
e6da3e4496
commit
6c9e86adaf
@ -22,7 +22,7 @@ void test_clone_nonetwork__initialize(void)
|
|||||||
memset(&g_options, 0, sizeof(git_clone_options));
|
memset(&g_options, 0, sizeof(git_clone_options));
|
||||||
g_options.version = GIT_CLONE_OPTIONS_VERSION;
|
g_options.version = GIT_CLONE_OPTIONS_VERSION;
|
||||||
g_options.checkout_opts = dummy_opts;
|
g_options.checkout_opts = dummy_opts;
|
||||||
g_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE_CREATE;
|
g_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
|
||||||
g_options.remote_callbacks = dummy_callbacks;
|
g_options.remote_callbacks = dummy_callbacks;
|
||||||
cl_git_pass(git_signature_now(&g_options.signature, "Me", "foo@example.com"));
|
cl_git_pass(git_signature_now(&g_options.signature, "Me", "foo@example.com"));
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ void test_online_clone__can_checkout_a_cloned_repo(void)
|
|||||||
bool checkout_progress_cb_was_called = false,
|
bool checkout_progress_cb_was_called = false,
|
||||||
fetch_progress_cb_was_called = false;
|
fetch_progress_cb_was_called = false;
|
||||||
|
|
||||||
g_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE_CREATE;
|
g_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
|
||||||
g_options.checkout_opts.progress_cb = &checkout_progress;
|
g_options.checkout_opts.progress_cb = &checkout_progress;
|
||||||
g_options.checkout_opts.progress_payload = &checkout_progress_cb_was_called;
|
g_options.checkout_opts.progress_payload = &checkout_progress_cb_was_called;
|
||||||
g_options.remote_callbacks.transfer_progress = &fetch_progress;
|
g_options.remote_callbacks.transfer_progress = &fetch_progress;
|
||||||
|
Loading…
Reference in New Issue
Block a user