Skip to content

Commit 8731e1f

Browse files
committed
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.
1 parent 24bd12c commit 8731e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/checkout/index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void test_checkout_index__can_disable_pathspec_match(void)
9696
git_checkout_options g_opts = GIT_CHECKOUT_OPTIONS_INIT;
9797
git_object *g_object;
9898

99-
char *files_to_checkout[] = { "test11.txt", "test12.txt"};
99+
char *files_to_checkout[] = { "test10.txt", "test11.txt"};
100100
size_t files_to_checkout_size = 2;
101101

102102
/* reset to beginning of history (i.e. just a README file) */
@@ -134,7 +134,7 @@ void test_checkout_index__can_disable_pathspec_match(void)
134134

135135
/* We checkout only test10.txt and test11.txt */
136136
g_opts.checkout_strategy =
137-
GIT_CHECKOUT_FORCE | GIT_CHECKOUT_REMOVE_UNTRACKED |
137+
GIT_CHECKOUT_FORCE |
138138
GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH;
139139
g_opts.paths.strings = files_to_checkout;
140140
g_opts.paths.count = files_to_checkout_size;

0 commit comments

Comments
 (0)