From 0c1f56722bbcba16b90d82411ed02f66622fc03a Mon Sep 17 00:00:00 2001 From: Chris Bargren Date: Tue, 22 Dec 2015 10:56:38 -0700 Subject: Adding spec coverage for ssh+git and git+ssh protocols --- tests/transport/register.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/transport/register.c b/tests/transport/register.c index ea917d5d3..385ef0a4c 100644 --- a/tests/transport/register.c +++ b/tests/transport/register.c @@ -44,6 +44,8 @@ void test_transport_register__custom_transport_ssh(void) #ifndef GIT_SSH cl_git_fail_with(git_transport_new(&transport, NULL, "ssh://somehost:somepath"), -1); + cl_git_fail_with(git_transport_new(&transport, NULL, "ssh+git://somehost:somepath"), -1); + cl_git_fail_with(git_transport_new(&transport, NULL, "git+ssh://somehost:somepath"), -1); cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1); #else cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath")); @@ -60,6 +62,8 @@ void test_transport_register__custom_transport_ssh(void) #ifndef GIT_SSH cl_git_fail_with(git_transport_new(&transport, NULL, "ssh://somehost:somepath"), -1); + cl_git_fail_with(git_transport_new(&transport, NULL, "ssh+git://somehost:somepath"), -1); + cl_git_fail_with(git_transport_new(&transport, NULL, "git+ssh://somehost:somepath"), -1); cl_git_fail_with(git_transport_new(&transport, NULL, "git@somehost:somepath"), -1); #else cl_git_pass(git_transport_new(&transport, NULL, "git@somehost:somepath")); -- cgit v1.2.1