diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2013-01-12 19:37:14 +0100 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2013-01-13 10:25:55 +0100 |
| commit | 5b524d6902b50dc2eebcce760de614edc2ab4cf4 (patch) | |
| tree | 6c6cb359c8594ed9f28e1d5e58e062bd871cde26 /tests-clar/checkout | |
| parent | 2a3b3e0324b272c50c8d2d7767bd4d55c4d453f6 (diff) | |
| download | libgit2-5b524d6902b50dc2eebcce760de614edc2ab4cf4.tar.gz | |
Fix Travis compilation warnings
Diffstat (limited to 'tests-clar/checkout')
| -rw-r--r-- | tests-clar/checkout/tree.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests-clar/checkout/tree.c b/tests-clar/checkout/tree.c index 34ac1ed80..b877b2eca 100644 --- a/tests-clar/checkout/tree.c +++ b/tests-clar/checkout/tree.c @@ -367,7 +367,6 @@ void assert_conflict( git_object *hack_tree; git_reference *branch, *head; git_buf file_path = GIT_BUF_INIT; - git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT; cl_git_pass(git_repository_index(&index, g_repo)); @@ -383,7 +382,7 @@ void assert_conflict( git_reference_free(branch); /* Checkout the parent */ - opts.checkout_strategy = GIT_CHECKOUT_FORCE; + g_opts.checkout_strategy = GIT_CHECKOUT_FORCE; cl_git_pass(git_checkout_tree(g_repo, g_object, &g_opts)); /* Hack-ishy workaound to ensure *all* the index entries @@ -403,7 +402,7 @@ void assert_conflict( /* Trying to checkout the original commit */ cl_git_pass(git_revparse_single(&g_object, g_repo, commit_sha)); - opts.checkout_strategy = GIT_CHECKOUT_SAFE; + g_opts.checkout_strategy = GIT_CHECKOUT_SAFE; cl_assert_equal_i( GIT_EMERGECONFLICT, git_checkout_tree(g_repo, g_object, &g_opts)); |
