diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-09-17 20:27:28 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-09-17 20:27:28 +0200 |
| commit | 397837197d1ce04b8bd4aaa57a7f5f67648dc57f (patch) | |
| tree | b7186ea6d0cf23326d18f26c090e07d084f3f911 /tests-clar/checkout/index.c | |
| parent | 5e4cb4f4da0baef99683be95cb5eeb5288d8ba84 (diff) | |
| download | libgit2-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.c | 6 |
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")); |
