diff options
Diffstat (limited to 'tests/online/clone.c')
-rw-r--r-- | tests/online/clone.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 0cd0f3115..be90bb4b9 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -381,3 +381,8 @@ void test_online_clone__ssh_with_paths(void) cl_git_pass(git_clone(&g_repo, remote_url, "./foo", &g_options)); } +void test_online_clone__url_with_no_path_returns_EINVALIDSPEC(void) +{ + cl_git_fail_with(git_clone(&g_repo, "http://github.com", "./foo", &g_options), + GIT_EINVALIDSPEC); +} |