Commit 397753f0 by Yuang Li

enable shallow clone support in tests when necessary

parent 59189757
......@@ -7,6 +7,7 @@ static git_repository *g_repo;
void test_grafts_basic__initialize(void)
{
git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1);
g_repo = cl_git_sandbox_init("grafted.git");
}
......
......@@ -19,6 +19,7 @@ void test_grafts_shallow__unset_feature_flag(void)
void test_grafts_shallow__initialize(void)
{
git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1);
cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644"));
}
......
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