summaryrefslogtreecommitdiff
path: root/tests-clar/clone/network.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-11-17 19:54:47 -0800
committerVicent Marti <tanoku@gmail.com>2012-11-17 19:55:06 -0800
commit9b965c01e06e695e8ee51a1cc080cc1509cd4962 (patch)
tree6868aeb349ce620bee6bccaa0b6069b223fd6a13 /tests-clar/clone/network.c
parent0066955d9752cab8f8533c0dddfc95d08ad13e33 (diff)
downloadlibgit2-more-api-tweaks.tar.gz
More external API cleanupmore-api-tweaks
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)));