diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-10 21:25:05 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-10 22:15:47 -0500 |
commit | 3f944f233964dbb5b52b9c119254a518d721ba95 (patch) | |
tree | eda6f6fbb49f462fe24a2e0f5b642a701ac70059 /tests/online/fetch.c | |
parent | e2e3f3e4cde7871f86eabacc6a639439b70a8fc7 (diff) | |
download | libgit2-ethomson/test_https.tar.gz |
online: test with https instead of git protocolethomson/test_https
GitHub is removing support for the unauthenticated git protocol; test
with the https protocol.
Diffstat (limited to 'tests/online/fetch.c')
-rw-r--r-- | tests/online/fetch.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/online/fetch.c b/tests/online/fetch.c index 914291015..f3c1329d3 100644 --- a/tests/online/fetch.c +++ b/tests/online/fetch.c @@ -67,11 +67,6 @@ static void do_fetch(const char *url, git_remote_autotag_option_t flag, int n) git_remote_free(remote); } -void test_online_fetch__default_git(void) -{ - do_fetch("git://github.com/libgit2/TestGitRepository.git", GIT_REMOTE_DOWNLOAD_TAGS_AUTO, 6); -} - void test_online_fetch__default_http(void) { do_fetch("http://github.com/libgit2/TestGitRepository.git", GIT_REMOTE_DOWNLOAD_TAGS_AUTO, 6); @@ -84,7 +79,7 @@ void test_online_fetch__default_https(void) void test_online_fetch__no_tags_git(void) { - do_fetch("git://github.com/libgit2/TestGitRepository.git", GIT_REMOTE_DOWNLOAD_TAGS_NONE, 3); + do_fetch("https://github.com/libgit2/TestGitRepository.git", GIT_REMOTE_DOWNLOAD_TAGS_NONE, 3); } void test_online_fetch__no_tags_http(void) @@ -95,7 +90,7 @@ void test_online_fetch__no_tags_http(void) void test_online_fetch__fetch_twice(void) { git_remote *remote; - cl_git_pass(git_remote_create(&remote, _repo, "test", "git://github.com/libgit2/TestGitRepository.git")); + cl_git_pass(git_remote_create(&remote, _repo, "test", "https://github.com/libgit2/TestGitRepository.git")); cl_git_pass(git_remote_connect(remote, GIT_DIRECTION_FETCH, NULL, NULL, NULL)); cl_git_pass(git_remote_download(remote, NULL, NULL)); git_remote_disconnect(remote); |