summaryrefslogtreecommitdiff
path: root/tests-clar/checkout/index.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-30 20:34:50 -0800
committerBen Straub <bs@github.com>2012-11-30 20:34:50 -0800
commit0ab3a2ab2c39a99b7cb3c969fd7b896afcec4885 (patch)
treeab8f3c0aa63a7c27098c12a8b7f049008b396378 /tests-clar/checkout/index.c
parentc7231c45fecf6c0ae91815a82db7e98c94689497 (diff)
downloadlibgit2-0ab3a2ab2c39a99b7cb3c969fd7b896afcec4885.tar.gz
Deploy GIT_INIT_STRUCTURE
Diffstat (limited to 'tests-clar/checkout/index.c')
-rw-r--r--tests-clar/checkout/index.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c
index e86dfe954..a67765b26 100644
--- a/tests-clar/checkout/index.c
+++ b/tests-clar/checkout/index.c
@@ -2,7 +2,6 @@
#include "git2/checkout.h"
#include "repository.h"
-#include "checkout_util.h"
static git_repository *g_repo;
static git_checkout_opts g_opts;
@@ -26,7 +25,7 @@ void test_checkout_index__initialize(void)
{
git_tree *tree;
- reset_checkout_opts(&g_opts);
+ GIT_INIT_STRUCTURE(&g_opts, GIT_CHECKOUT_OPTS_VERSION);
g_opts.checkout_strategy = GIT_CHECKOUT_SAFE;
g_repo = cl_git_sandbox_init("testrepo");
@@ -67,7 +66,7 @@ void test_checkout_index__cannot_checkout_a_bare_repository(void)
{
test_checkout_index__cleanup();
- reset_checkout_opts(&g_opts);
+ GIT_INIT_STRUCTURE(&g_opts, GIT_CHECKOUT_OPTS_VERSION);
g_repo = cl_git_sandbox_init("testrepo.git");
cl_git_fail(git_checkout_index(g_repo, NULL, NULL));