summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com>2022-06-28 11:57:50 +0100
committerYuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com>2022-06-28 11:57:50 +0100
commit70a332a51b6364507d19bd1821b22fabbd1f2e08 (patch)
treeb4bc4c335360e1837c6054a266eb6fc73a095c9f /tests
parent06eacb91679f4d7c828c64c71081500219926f22 (diff)
downloadlibgit2-70a332a51b6364507d19bd1821b22fabbd1f2e08.tar.gz
disable shallow clone feature flag in test cleanup
Diffstat (limited to 'tests')
-rw-r--r--tests/grafts/basic.c1
-rw-r--r--tests/grafts/shallow.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/grafts/basic.c b/tests/grafts/basic.c
index 3d3c65aeb..4be4a12bf 100644
--- a/tests/grafts/basic.c
+++ b/tests/grafts/basic.c
@@ -13,6 +13,7 @@ void test_grafts_basic__initialize(void)
void test_grafts_basic__cleanup(void)
{
+ git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0);
cl_git_sandbox_cleanup();
}
diff --git a/tests/grafts/shallow.c b/tests/grafts/shallow.c
index 339235860..a75b5a051 100644
--- a/tests/grafts/shallow.c
+++ b/tests/grafts/shallow.c
@@ -25,6 +25,7 @@ void test_grafts_shallow__initialize(void)
void test_grafts_shallow__cleanup(void)
{
+ git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0);
cl_git_sandbox_cleanup();
}