We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90fad07 commit e476e7bCopy full SHA for e476e7b
tests/index/tests.c
@@ -340,8 +340,10 @@ void test_index_tests__add_invalid_filename(void)
340
cl_must_pass(p_mkdir("./invalid/subdir", 0777));
341
342
/* cl_git_mkfile() needs the dir to exist */
343
- cl_must_pass(p_mkdir("./invalid/.GIT", 0777));
344
- cl_must_pass(p_mkdir("./invalid/.GiT", 0777));
+ if (!git_path_exists("./invalid/.GIT"))
+ cl_must_pass(p_mkdir("./invalid/.GIT", 0777));
345
+ if (!git_path_exists("./invalid/.GiT"))
346
+ cl_must_pass(p_mkdir("./invalid/.GiT", 0777));
347
348
add_invalid_filename(repo, ".git/hello");
349
add_invalid_filename(repo, ".GIT/hello");
0 commit comments