mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-06 10:22:42 +00:00
Adding spec coverage for ssh+git and git+ssh protocols
This commit is contained in:
parent
ed21fd745c
commit
0c1f56722b
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user