summaryrefslogtreecommitdiff
path: root/tests-clar/checkout/index.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-09-17 20:27:28 +0200
committernulltoken <emeric.fermas@gmail.com>2012-09-17 20:27:28 +0200
commit397837197d1ce04b8bd4aaa57a7f5f67648dc57f (patch)
treeb7186ea6d0cf23326d18f26c090e07d084f3f911 /tests-clar/checkout/index.c
parent5e4cb4f4da0baef99683be95cb5eeb5288d8ba84 (diff)
downloadlibgit2-397837197d1ce04b8bd4aaa57a7f5f67648dc57f.tar.gz
checkout: Mimic git_diff_options storage of paths
Diffstat (limited to 'tests-clar/checkout/index.c')
-rw-r--r--tests-clar/checkout/index.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c
index fad10be51..d1c59e38c 100644
--- a/tests-clar/checkout/index.c
+++ b/tests-clar/checkout/index.c
@@ -102,12 +102,10 @@ void test_checkout_index__can_remove_untracked_files(void)
void test_checkout_index__honor_the_specified_pathspecs(void)
{
- git_strarray paths;
char *entries[] = { "*.txt" };
- paths.strings = entries;
- paths.count = 1;
- g_opts.paths = &paths;
+ g_opts.paths.strings = entries;
+ g_opts.paths.count = 1;
cl_assert_equal_i(false, git_path_isfile("./testrepo/README"));
cl_assert_equal_i(false, git_path_isfile("./testrepo/branch_file.txt"));