diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-03-17 09:44:56 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-03-17 09:44:56 -0400 |
commit | 828e595969efee951d67f23cfd9f4b8461ce71fb (patch) | |
tree | 11e95c5a161ce1def1933fa6f4bc84220105791c /tests | |
parent | c07d02064d1c58dea47b48580abf0523f59c1bda (diff) | |
parent | 84d83b8e75a85b22c6003eaf9416b98fe6916d29 (diff) | |
download | libgit2-828e595969efee951d67f23cfd9f4b8461ce71fb.tar.gz |
Merge pull request #2982 from libgit2/cmn/stream-check-ec
Don't ask for a stream's certificate unless it's encrypted
Diffstat (limited to 'tests')
-rw-r--r-- | tests/online/clone.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 3bb927955..4fdeee1d2 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -565,3 +565,10 @@ void test_online_clone__certificate_valid(void) cl_git_pass(git_clone(&g_repo, "https://github.com/libgit2/TestGitRepository", "./foo", &g_options)); } + +void test_online_clone__start_with_http(void) +{ + g_options.remote_callbacks.certificate_check = succeed_certificate_check; + + cl_git_pass(git_clone(&g_repo, "http://github.com/libgit2/TestGitRepository", "./foo", &g_options)); +} |