diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-11-23 22:05:29 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-11-23 22:12:00 +0000 |
commit | fb36b3e9e06ba2b50163c34c99adf0257d5c0d12 (patch) | |
tree | 13919fe5c87945b60c17660ff2ee498fa487a43f /tests/libgit2/online/clone.c | |
parent | 31e65bb11202a9f7ca247fa7b9bb11bf88d5f18b (diff) | |
download | libgit2-ethomson/sha256_experimental-old.tar.gz |
clone: support sha256ethomson/sha256_experimental-old
Diffstat (limited to 'tests/libgit2/online/clone.c')
-rw-r--r-- | tests/libgit2/online/clone.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/libgit2/online/clone.c b/tests/libgit2/online/clone.c index 96ff66ae0..8f89ba5cf 100644 --- a/tests/libgit2/online/clone.c +++ b/tests/libgit2/online/clone.c @@ -1058,3 +1058,20 @@ void test_online_clone__namespace_with_specified_branch(void) git_reference_free(head); } + +void test_online_clone__sha256(void) +{ + git_clone_options options = GIT_CLONE_OPTIONS_INIT; + git_reference *head; + + if (!_remote_url) + cl_skip(); + + cl_git_pass(git_clone(&g_repo, _remote_url, "./sha256", &options)); + cl_git_pass(git_reference_lookup(&head, g_repo, GIT_HEAD_FILE)); + cl_assert_equal_i(GIT_REFERENCE_SYMBOLIC, git_reference_type(head)); + + abort(); + + git_reference_free(head); +} |