summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-03-17 09:44:56 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2015-03-17 09:44:56 -0400
commit828e595969efee951d67f23cfd9f4b8461ce71fb (patch)
tree11e95c5a161ce1def1933fa6f4bc84220105791c /tests
parentc07d02064d1c58dea47b48580abf0523f59c1bda (diff)
parent84d83b8e75a85b22c6003eaf9416b98fe6916d29 (diff)
downloadlibgit2-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.c7
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));
+}