Skip to content

Commit 188ca62

Browse files
carlosmnethomson
authored andcommitted
Create miscapitialised dirs for case-sensitive filesystems
We need these directories to exist so cl_git_mkfile() can create the files we ask it to.
1 parent 88c8abf commit 188ca62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/index/tests.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ void test_index_tests__add_invalid_filename(void)
338338
cl_git_pass(git_repository_init(&repo, "./invalid", 0));
339339
cl_must_pass(p_mkdir("./invalid/subdir", 0777));
340340

341+
/* cl_git_mkfile() needs the dir to exist */
342+
cl_must_pass(p_mkdir("./invalid/.GIT", 0777));
343+
cl_must_pass(p_mkdir("./invalid/.GiT", 0777));
344+
341345
add_invalid_filename(repo, ".git/hello");
342346
add_invalid_filename(repo, ".GIT/hello");
343347
add_invalid_filename(repo, ".GiT/hello");

0 commit comments

Comments
 (0)