diff options
author | Chris Bargren <cbargren@gmail.com> | 2015-12-22 10:56:38 -0700 |
---|---|---|
committer | Chris Bargren <cbargren@gmail.com> | 2015-12-22 10:56:38 -0700 |
commit | 0c1f56722bbcba16b90d82411ed02f66622fc03a (patch) | |
tree | 963f6c28b7d0b4fde5270b228c116c2c265fc3d6 | |
parent | ed21fd745ca9119817e0005080f7dbd0234b7842 (diff) | |
download | libgit2-0c1f56722bbcba16b90d82411ed02f66622fc03a.tar.gz |
Adding spec coverage for ssh+git and git+ssh protocols
-rw-r--r-- | tests/transport/register.c | 4 |
1 files changed, 4 insertions, 0 deletions
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")); |