summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-02-02 19:01:15 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-05-10 23:47:20 +0100
commit8731e1f4a10a29fe819e3d3011077737e3c7df43 (patch)
tree006fb047ecfd8cc18decee444612e57fe3602d31
parent24bd12c4f91f841b70bd65252aa25b221bf63eb5 (diff)
downloadlibgit2-8731e1f4a10a29fe819e3d3011077737e3c7df43.tar.gz
tests::checkout: only examine test10 and test11.txt
The checkout::index::can_disable_pathspec_match test attempts to set a path filter of `test11.txt` and `test12.txt`, but then validates that `test10.txt` and `test11.txt` were left unmodified. Update the test's path filter to match the expectation.
-rw-r--r--tests/checkout/index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkout/index.c b/tests/checkout/index.c
index 1a93d3591..813467324 100644
--- a/tests/checkout/index.c
+++ b/tests/checkout/index.c
@@ -96,7 +96,7 @@ void test_checkout_index__can_disable_pathspec_match(void)
git_checkout_options g_opts = GIT_CHECKOUT_OPTIONS_INIT;
git_object *g_object;
- char *files_to_checkout[] = { "test11.txt", "test12.txt"};
+ char *files_to_checkout[] = { "test10.txt", "test11.txt"};
size_t files_to_checkout_size = 2;
/* reset to beginning of history (i.e. just a README file) */
@@ -134,7 +134,7 @@ void test_checkout_index__can_disable_pathspec_match(void)
/* We checkout only test10.txt and test11.txt */
g_opts.checkout_strategy =
- GIT_CHECKOUT_FORCE | GIT_CHECKOUT_REMOVE_UNTRACKED |
+ GIT_CHECKOUT_FORCE |
GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH;
g_opts.paths.strings = files_to_checkout;
g_opts.paths.count = files_to_checkout_size;