diff --git a/src/transport.c b/src/transport.c index 1c4f3301b..b69072f94 100644 --- a/src/transport.c +++ b/src/transport.c @@ -62,16 +62,18 @@ static int transport_find_fn(const char *url, git_transport_cb *callback, void * if (!definition && git_path_exists(url) && git_path_isdir(url)) definition = &local_transport_definition; - /* It could be a SSH remote path. Check to see if there's a : */ + /* It could be a SSH remote path. Check to see if there's a : + * SSH is an unsupported transport mechanism in this version of libgit2 */ if (!definition && strrchr(url, ':')) - definition = &dummy_transport_definition; /* SSH is an unsupported transport mechanism in this version of libgit2 */ + definition = &dummy_transport_definition; #else /* For other systems, perform the SSH check first, to avoid going to the * filesystem if it is not necessary */ - /* It could be a SSH remote path. Check to see if there's a : */ + /* It could be a SSH remote path. Check to see if there's a : + * SSH is an unsupported transport mechanism in this version of libgit2 */ if (!definition && strrchr(url, ':')) - definition = &dummy_transport_definition; /* SSH is an unsupported transport mechanism in this version of libgit2 */ + definition = &dummy_transport_definition; /* Check to see if the path points to a file on the local file system */ if (!definition && git_path_exists(url) && git_path_isdir(url))