Commit aea676336ceade0c1d07c1aea2f484289ce3c860

Edward Thomson 2014-07-31T17:59:03

Don't run the ssh clone tests against http remotes

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/online/clone.c b/tests/online/clone.c
index b672a09..88aacbd 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -346,7 +346,7 @@ void test_online_clone__ssh_with_paths(void)
 	const char *remote_url = cl_getenv("GITTEST_REMOTE_URL");
 	const char *remote_user = cl_getenv("GITTEST_REMOTE_USER");
 
-	if (!remote_url || !remote_user)
+	if (!remote_url || !remote_user || strncmp(remote_url, "ssh://", 5) != 0)
 		clar__skip();
 
 	g_options.remote_cb = custom_remote_ssh_with_paths;