From c679bf42f53cd792c03c3d3b30d5e04901be6ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 18 Dec 2014 02:07:36 +0100 Subject: [PATCH] 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. --- tests/index/tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/index/tests.c b/tests/index/tests.c index a6c4b895c..6a751e71f 100644 --- a/tests/index/tests.c +++ b/tests/index/tests.c @@ -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");