revparse: readonly tests don't need a sandboxed repo

This commit is contained in:
nulltoken 2012-07-03 14:59:14 +02:00
parent d0a920a6fd
commit 34922eeeed

View File

@ -28,12 +28,13 @@ void test_refs_revparse__initialize(void)
if (tz) if (tz)
strcpy(g_orig_tz, tz); strcpy(g_orig_tz, tz);
cl_setenv("TZ", "UTC"); cl_setenv("TZ", "UTC");
g_repo = cl_git_sandbox_init("testrepo.git");
cl_git_pass(git_repository_open(&g_repo, cl_fixture("testrepo.git")));
} }
void test_refs_revparse__cleanup(void) void test_refs_revparse__cleanup(void)
{ {
cl_git_sandbox_cleanup(); git_repository_free(g_repo);
g_obj = NULL; g_obj = NULL;
cl_setenv("TZ", g_orig_tz); cl_setenv("TZ", g_orig_tz);
} }