Skip to content

Commit

Permalink
t12-repo.c: fix failing test discover0
Browse files Browse the repository at this point in the history
discover0 tried to stat a non existing directory. Create it beforehand.

Signed-off-by: schu <schu-github@schulog.org>
  • Loading branch information
schu committed Aug 10, 2011
1 parent c24ceff commit befae28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/t12-repo.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ BEGIN_TEST(discover0, "test discover")
char found_path[GIT_PATH_MAX];
int mode = 0755;

must_pass(append_ceiling_dir(ceiling_dirs, TEMP_REPO_FOLDER));
git_futils_mkdir_r(DISCOVER_FOLDER, mode);
must_pass(append_ceiling_dir(ceiling_dirs, TEMP_REPO_FOLDER));

must_be_true(git_repository_discover(repository_path, sizeof(repository_path), DISCOVER_FOLDER, 0, ceiling_dirs) == GIT_ENOTAREPO);

Expand Down

0 comments on commit befae28

Please sign in to comment.