Commit be20626a by Carlos Martín Nieto Committed by Patrick Steinhardt

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.
parent aa003557
...@@ -367,7 +367,12 @@ void test_checkout_nasty__symlink3(void) ...@@ -367,7 +367,12 @@ void test_checkout_nasty__symlink3(void)
void test_checkout_nasty__gitmodules_symlink(void) void test_checkout_nasty__gitmodules_symlink(void)
{ {
cl_repo_set_bool(repo, "core.protectHFS", true); cl_repo_set_bool(repo, "core.protectHFS", true);
test_checkout_fails("refs/heads/gitmodules-symlink", ".gitmodules");
cl_repo_set_bool(repo, "core.protectHFS", false);
cl_repo_set_bool(repo, "core.protectNTFS", true); cl_repo_set_bool(repo, "core.protectNTFS", true);
test_checkout_fails("refs/heads/gitmodules-symlink", ".gitmodules");
cl_repo_set_bool(repo, "core.protectNTFS", false);
test_checkout_passes("refs/heads/gitmodules-symlink", ".gitmodules"); test_checkout_fails("refs/heads/gitmodules-symlink", ".gitmodules");
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment