Commit 34922eee by nulltoken

revparse: readonly tests don't need a sandboxed repo

parent d0a920a6
...@@ -28,12 +28,13 @@ void test_refs_revparse__initialize(void) ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment