diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-12-03 18:57:16 +1100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-12-10 18:09:11 +1000 |
| commit | f3b2860423815050777a731c8dd4714235929075 (patch) | |
| tree | d57ec5b9b5cc9ceab1daf51a2ae1836d2a2d7b3e /tests/object/tree/write.c | |
| parent | 336991dbf274575d2a09c1b98e34e8bfc231746e (diff) | |
| download | libgit2-f3b2860423815050777a731c8dd4714235929075.tar.gz | |
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.
Diffstat (limited to 'tests/object/tree/write.c')
| -rw-r--r-- | tests/object/tree/write.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/object/tree/write.c b/tests/object/tree/write.c index 9efeeb9b7..302f2c46c 100644 --- a/tests/object/tree/write.c +++ b/tests/object/tree/write.c @@ -444,6 +444,7 @@ void test_object_tree_write__protect_filesystems(void) cl_git_fail(git_treebuilder_insert(NULL, builder, ".git\xef\xbb\xbf", &bid, GIT_FILEMODE_BLOB)); cl_git_fail(git_treebuilder_insert(NULL, builder, ".git\xe2\x80\xad", &bid, GIT_FILEMODE_BLOB)); + cl_git_fail(git_treebuilder_insert(NULL, builder, ".git::$INDEX_ALLOCATION/dummy-file", &bid, GIT_FILEMODE_BLOB)); git_treebuilder_free(builder); } |
