summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-08 10:17:11 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-09 17:14:08 +0100
commit437c5f5a0b6ae6068168081ac6422dba44cff31d (patch)
tree885189c81fd54d00f9bc019033237f41ca989653 /tests
parent0a7e32b2326c02a91f9560dfd209e56ea9fb9d49 (diff)
downloadlibgit2-437c5f5a0b6ae6068168081ac6422dba44cff31d.tar.gz
fetch: remove `unshallow` option
The `depth` field is suitable to specify unshallowing; provide an enum to aide in specifying the `unshallow` value.
Diffstat (limited to 'tests')
-rw-r--r--tests/libgit2/online/shallow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/online/shallow.c b/tests/libgit2/online/shallow.c
index 12ef7748b..5c0e6565b 100644
--- a/tests/libgit2/online/shallow.c
+++ b/tests/libgit2/online/shallow.c
@@ -143,7 +143,7 @@ void test_online_shallow__unshallow(void)
cl_git_pass(git_clone(&repo, "https://github.com/libgit2/TestGitRepository", git_str_cstr(&path), &clone_opts));
cl_assert_equal_b(true, git_repository_is_shallow(repo));
- fetch_opts.unshallow = 1;
+ fetch_opts.depth = GIT_FETCH_DEPTH_UNSHALLOW;
cl_git_pass(git_remote_lookup(&origin, repo, "origin"));
cl_git_pass(git_remote_fetch(origin, NULL, &fetch_opts, NULL));