Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-12 00:07:49 +0400
committerJacques Germishuys <jacquesg@striata.com>2014-04-12 00:48:42 +0400
commitefaa342cbb62069510a3787da433e6b5b935fcde (patch)
tree3a78de11cb6b3521b49520daa09b17a4fd1bb2b8 /tests/repo
parentbcc622934a90307390f058c7ef4203f8bbcfe0d6 (diff)
Correct C90 warnings
Diffstat (limited to 'tests/repo')
-rw-r--r--tests/repo/open.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/repo/open.c b/tests/repo/open.c
index f7420bd3a..190adff1c 100644
--- a/tests/repo/open.c
+++ b/tests/repo/open.c
@@ -102,14 +102,13 @@ void test_repo_open__gitlinked(void)
void test_repo_open__from_git_new_workdir(void)
{
+#ifndef GIT_WIN32
/* The git-new-workdir script that ships with git sets up a bunch of
* symlinks to create a second workdir that shares the object db with
* another checkout. Libgit2 can open a repo that has been configured
* this way.
*/
- cl_git_sandbox_init("empty_standard_repo");
-#ifndef GIT_WIN32
git_repository *repo2;
git_buf link_tgt = GIT_BUF_INIT, link = GIT_BUF_INIT, body = GIT_BUF_INIT;
const char **scan;
@@ -122,6 +121,8 @@ void test_repo_open__from_git_new_workdir(void)
"HEAD", NULL
};
+ cl_git_sandbox_init("empty_standard_repo");
+
cl_git_pass(p_mkdir("alternate", 0777));
cl_git_pass(p_mkdir("alternate/.git", 0777));