diff options
author | Ben Straub <bs@github.com> | 2012-11-30 20:34:50 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-11-30 20:34:50 -0800 |
commit | 0ab3a2ab2c39a99b7cb3c969fd7b896afcec4885 (patch) | |
tree | ab8f3c0aa63a7c27098c12a8b7f049008b396378 /tests-clar/checkout/index.c | |
parent | c7231c45fecf6c0ae91815a82db7e98c94689497 (diff) | |
download | libgit2-0ab3a2ab2c39a99b7cb3c969fd7b896afcec4885.tar.gz |
Deploy GIT_INIT_STRUCTURE
Diffstat (limited to 'tests-clar/checkout/index.c')
-rw-r--r-- | tests-clar/checkout/index.c | 5 |
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)); |