summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-03-11 12:56:09 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-10 19:58:22 +0100
commit757411a0a5e14cbedea638ebdf70d2ffcdcd2931 (patch)
tree8c057aed59235671bebc39f0972a9c10cc22b81a
parentc6ab183e9c960b74471a7d106a4deb0c8b28a8ec (diff)
downloadlibgit2-757411a0a5e14cbedea638ebdf70d2ffcdcd2931.tar.gz
network: don't add arbitrary url rules
There's no reason a git repository couldn't be at the root of a server, and URLs should have an implicit path of '/' when one is not specified.
-rw-r--r--tests/online/clone.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c
index 0d0334cbb..68b66d018 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -682,12 +682,6 @@ void test_online_clone__ssh_memory_auth(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);
-}
-
static int fail_certificate_check(git_cert *cert, int valid, const char *host, void *payload)
{
GIT_UNUSED(cert);