Commit e476e7be by Edward Thomson Committed by Edward Thomson

index tests: test capitalization before mkdir

parent 90fad07d
...@@ -340,7 +340,9 @@ void test_index_tests__add_invalid_filename(void) ...@@ -340,7 +340,9 @@ void test_index_tests__add_invalid_filename(void)
cl_must_pass(p_mkdir("./invalid/subdir", 0777)); cl_must_pass(p_mkdir("./invalid/subdir", 0777));
/* cl_git_mkfile() needs the dir to exist */ /* cl_git_mkfile() needs the dir to exist */
if (!git_path_exists("./invalid/.GIT"))
cl_must_pass(p_mkdir("./invalid/.GIT", 0777)); cl_must_pass(p_mkdir("./invalid/.GIT", 0777));
if (!git_path_exists("./invalid/.GiT"))
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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment