diff options
| author | Ryan Wilcox <rwilcox@wilcoxd.com> | 2012-02-29 17:37:18 -0500 |
|---|---|---|
| committer | Ryan Wilcox <rwilcox@wilcoxd.com> | 2012-02-29 17:37:18 -0500 |
| commit | 58448910a0591c38959bd26de23cbe97e243b0af (patch) | |
| tree | e073f43522a7ca321dd4bb5f8f7a5dcea6c131fe /tests-clar/network/remotes.c | |
| parent | 17b3d9b92b9132be116e4ecfae736de025c5158f (diff) | |
| download | libgit2-58448910a0591c38959bd26de23cbe97e243b0af.tar.gz | |
implement support for username@host:path URLs in transport_find_fn()
Diffstat (limited to 'tests-clar/network/remotes.c')
| -rw-r--r-- | tests-clar/network/remotes.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c index 36b945f9a..4cf473d70 100644 --- a/tests-clar/network/remotes.c +++ b/tests-clar/network/remotes.c @@ -30,6 +30,16 @@ void test_network_remotes__parsing(void) cl_assert(!strcmp(git_remote_url(_remote), "git://github.com/libgit2/libgit2")); } +void test_network_remotes__parsing_ssh_remote(void) +{ + cl_assert( git_remote_valid_url("git@github.com:libgit2/libgit2.git") ); +} + +void test_network_remotes__parsing_local_path(void) +{ + cl_assert( !git_remote_valid_url("/home/git/repos/libgit2.git") ); +} + void test_network_remotes__refspec_parsing(void) { cl_assert(!strcmp(git_refspec_src(_refspec), "refs/heads/*")); |
