mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 04:28:26 +00:00
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.
This commit is contained in:
parent
dce7b1a4e7
commit
c679bf42f5
@ -338,6 +338,10 @@ void test_index_tests__add_invalid_filename(void)
|
||||
cl_git_pass(git_repository_init(&repo, "./invalid", 0));
|
||||
cl_must_pass(p_mkdir("./invalid/subdir", 0777));
|
||||
|
||||
/* cl_git_mkfile() needs the dir to exist */
|
||||
cl_must_pass(p_mkdir("./invalid/.GIT", 0777));
|
||||
cl_must_pass(p_mkdir("./invalid/.GiT", 0777));
|
||||
|
||||
add_invalid_filename(repo, ".git/hello");
|
||||
add_invalid_filename(repo, ".GIT/hello");
|
||||
add_invalid_filename(repo, ".GiT/hello");
|
||||
|
Loading…
Reference in New Issue
Block a user