diff options
author | Russell Belfer <rb@github.com> | 2013-07-09 09:58:33 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-09 09:58:33 -0700 |
commit | a3c062dbf8c8060b9f0cedc2855f506736d25c73 (patch) | |
tree | 3beeb7bd60d6da7c9bfc661683557d5d19abb2e1 /src/transport.c | |
parent | 82cb8e236a07d8684c53aa8ee5b1c6195f788371 (diff) | |
download | libgit2-a3c062dbf8c8060b9f0cedc2855f506736d25c73.tar.gz |
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.c | 4 |
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; } |