Skip to content

Commit f3b2860

Browse files
committed
test: ensure treebuilder validate new protection rules
Ensure that the new protection around .git::$INDEX_ALLOCATION rules are enabled for using the treebuilder when core.protectNTFS is set.
1 parent 336991d commit f3b2860

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/object/tree/write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ void test_object_tree_write__protect_filesystems(void)
444444

445445
cl_git_fail(git_treebuilder_insert(NULL, builder, ".git\xef\xbb\xbf", &bid, GIT_FILEMODE_BLOB));
446446
cl_git_fail(git_treebuilder_insert(NULL, builder, ".git\xe2\x80\xad", &bid, GIT_FILEMODE_BLOB));
447+
cl_git_fail(git_treebuilder_insert(NULL, builder, ".git::$INDEX_ALLOCATION/dummy-file", &bid, GIT_FILEMODE_BLOB));
447448

448449
git_treebuilder_free(builder);
449450
}

0 commit comments

Comments
 (0)