summaryrefslogtreecommitdiff
path: root/tests-clar/clone/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/clone/network.c')
-rw-r--r--tests-clar/clone/network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/clone/network.c b/tests-clar/clone/network.c
index 1304f7728..747fc2b4e 100644
--- a/tests-clar/clone/network.c
+++ b/tests-clar/clone/network.c
@@ -107,7 +107,7 @@ static void fetch_progress(const git_transfer_progress *stats, void *payload)
void test_clone_network__can_checkout_a_cloned_repo(void)
{
- git_checkout_opts opts = {0};
+ git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT;
git_buf path = GIT_BUF_INIT;
git_reference *head;
bool checkout_progress_cb_was_called = false,
@@ -119,8 +119,8 @@ void test_clone_network__can_checkout_a_cloned_repo(void)
cl_set_cleanup(&cleanup_repository, "./default-checkout");
- cl_git_pass(git_clone(&g_repo, LIVE_REPO_URL, "./default-checkout",
- &fetch_progress, &fetch_progress_cb_was_called, &opts));
+ cl_git_pass(git_clone(&g_repo, LIVE_REPO_URL, "./default-checkout", &opts,
+ &fetch_progress, &fetch_progress_cb_was_called));
cl_git_pass(git_buf_joinpath(&path, git_repository_workdir(g_repo), "master.txt"));
cl_assert_equal_i(true, git_path_isfile(git_buf_cstr(&path)));