summaryrefslogtreecommitdiff
path: root/tests/grafts/shallow.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grafts/shallow.c')
-rw-r--r--tests/grafts/shallow.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/grafts/shallow.c b/tests/grafts/shallow.c
index 8fe3421f2..ac1d686af 100644
--- a/tests/grafts/shallow.c
+++ b/tests/grafts/shallow.c
@@ -7,6 +7,16 @@
static git_repository *g_repo;
static git_oid g_shallow_oid;
+void test_grafts_shallow__set_feature_flag(void)
+{
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1));
+}
+
+void test_grafts_shallow__unset_feature_flag(void)
+{
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0));
+}
+
void test_grafts_shallow__initialize(void)
{
cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644"));