Commit be20626a7d90640b49ad923b75cf7c5eaa082d13

Carlos Martín Nieto 2018-05-22T20:37:23

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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/tests/checkout/nasty.c b/tests/checkout/nasty.c
index 7364779..d4d3c8f 100644
--- a/tests/checkout/nasty.c
+++ b/tests/checkout/nasty.c
@@ -367,7 +367,12 @@ void test_checkout_nasty__symlink3(void)
 void test_checkout_nasty__gitmodules_symlink(void)
 {
 	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);
+	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");
 }