Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-07-09 20:58:33 +0400
committerRussell Belfer <rb@github.com>2013-07-09 20:58:33 +0400
commita3c062dbf8c8060b9f0cedc2855f506736d25c73 (patch)
tree3beeb7bd60d6da7c9bfc661683557d5d19abb2e1 /src/transport.c
parent82cb8e236a07d8684c53aa8ee5b1c6195f788371 (diff)
Make SSH APIs present even without SSH support
The SSH APIs will just return an error code and state that the library was built without SSH support if they are called in that case.
Diffstat (limited to 'src/transport.c')
-rw-r--r--src/transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport.c b/src/transport.c
index 37c244c97..354789db1 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -73,7 +73,7 @@ static int transport_find_fn(const char *url, git_transport_cb *callback, void *
/* 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;
+ definition = &dummy_transport_definition;
#else
/* For other systems, perform the SSH check first, to avoid going to the
* filesystem if it is not necessary */
@@ -97,7 +97,7 @@ static int transport_find_fn(const char *url, git_transport_cb *callback, void *
*callback = definition->fn;
*param = definition->param;
-
+
return 0;
}