@@ -141,7 +141,7 @@ void test_object_tree_write__sorted_subtrees(void)
141141 cl_git_pass (git_treebuilder_new (& builder , g_repo , NULL ));
142142
143143 for (i = 0 ; i < ARRAY_SIZE (entries ); ++ i ) {
144- git_oid * id = entries [i ].attr == GIT_FILEMODE_TREE ? & tid : & bid ;
144+ git_oid * id = entries [i ].attr == GIT_FILEMODE_TREE ? & tid : & bid ;
145145
146146 cl_git_pass (git_treebuilder_insert (NULL ,
147147 builder , entries [i ].filename , id , entries [i ].attr ));
@@ -418,10 +418,8 @@ void test_object_tree_write__protect_filesystems(void)
418418 */
419419 cl_git_pass (git_treebuilder_new (& builder , g_repo , NULL ));
420420
421- #ifndef GIT_WIN32
422- cl_git_pass (git_treebuilder_insert (NULL , builder , ".git." , & bid , GIT_FILEMODE_BLOB ));
423- cl_git_pass (git_treebuilder_insert (NULL , builder , "git~1" , & bid , GIT_FILEMODE_BLOB ));
424- #endif
421+ cl_git_fail (git_treebuilder_insert (NULL , builder , ".git." , & bid , GIT_FILEMODE_BLOB ));
422+ cl_git_fail (git_treebuilder_insert (NULL , builder , "git~1" , & bid , GIT_FILEMODE_BLOB ));
425423
426424#ifndef __APPLE__
427425 cl_git_pass (git_treebuilder_insert (NULL , builder , ".git\xef\xbb\xbf" , & bid , GIT_FILEMODE_BLOB ));
0 commit comments