Imported Upstream version 2.6.0
[platform/upstream/git.git] / connect.c
index 27a706f..c0144d8 100644 (file)
--- a/connect.c
+++ b/connect.c
@@ -9,7 +9,6 @@
 #include "url.h"
 #include "string-list.h"
 #include "sha1-array.h"
-#include "transport.h"
 
 static char *server_capabilities;
 static const char *parse_feature_value(const char *, const char *, int *);
@@ -695,8 +694,6 @@ struct child_process *git_connect(int fd[2], const char *url,
                else
                        target_host = xstrdup(hostandport);
 
-               transport_check_allowed("git");
-
                /* These underlying connection commands die() if they
                 * cannot connect.
                 */
@@ -730,7 +727,6 @@ struct child_process *git_connect(int fd[2], const char *url,
                        int putty, tortoiseplink = 0;
                        char *ssh_host = hostandport;
                        const char *port = NULL;
-                       transport_check_allowed("ssh");
                        get_host_and_port(&ssh_host, &port);
 
                        if (!port)
@@ -785,7 +781,6 @@ struct child_process *git_connect(int fd[2], const char *url,
                        /* remove repo-local variables from the environment */
                        conn->env = local_repo_env;
                        conn->use_shell = 1;
-                       transport_check_allowed("file");
                }
                argv_array_push(&conn->args, cmd.buf);