]> git.proxmox.com Git - libgit2.git/commitdiff
Don't run the ssh clone tests against http remotes
authorEdward Thomson <ethomson@edwardthomson.com>
Thu, 31 Jul 2014 21:59:03 +0000 (17:59 -0400)
committerEdward Thomson <ethomson@edwardthomson.com>
Thu, 14 Aug 2014 15:18:20 +0000 (10:18 -0500)
tests/online/clone.c

index b672a099a47d9cb9899c50c7de09edc1b01e6ab0..88aacbd434e143c23dbaf6969e323eff7da255da 100644 (file)
@@ -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;