Skip to content

Commit 3fbfae2

Browse files
committed
checkout: change symlinked .gitmodules file test to expect failure
When dealing with `core.proectNTFS` and `core.protectHFS` we do check against `.gitmodules` but we still have a failing test as the non-filesystem codepath does not check for it.
1 parent a7168b4 commit 3fbfae2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/checkout/nasty.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,12 @@ void test_checkout_nasty__symlink3(void)
367367
void test_checkout_nasty__gitmodules_symlink(void)
368368
{
369369
cl_repo_set_bool(repo, "core.protectHFS", true);
370+
test_checkout_fails("refs/heads/gitmodules-symlink", ".gitmodules");
371+
cl_repo_set_bool(repo, "core.protectHFS", false);
372+
370373
cl_repo_set_bool(repo, "core.protectNTFS", true);
374+
test_checkout_fails("refs/heads/gitmodules-symlink", ".gitmodules");
375+
cl_repo_set_bool(repo, "core.protectNTFS", false);
371376

372-
test_checkout_passes("refs/heads/gitmodules-symlink", ".gitmodules");
377+
test_checkout_fails("refs/heads/gitmodules-symlink", ".gitmodules");
373378
}

0 commit comments

Comments
 (0)