summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-12-05 08:43:29 -0800
committerVicent Martí <vicent@github.com>2013-12-05 08:43:29 -0800
commit98c248d7bf57c2a74761bb8bb8b41a965cdf58d6 (patch)
tree82a85be76583fcb37e658bc10f25adcabfbebf2d /src
parentcf297c353fee12316ed647a0e60185f312788446 (diff)
parented5b77b0fdd6eebc35742e1f27c4a9de4849d8ce (diff)
downloadlibgit2-98c248d7bf57c2a74761bb8bb8b41a965cdf58d6.tar.gz
Merge pull request #1988 from mgbowen/fix-libssh2-windows
Fixed compilation on Windows when using libssh2.
Diffstat (limited to 'src')
-rw-r--r--src/transport.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/transport.c b/src/transport.c
index ff926b1be..2b0c6a185 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -79,12 +79,8 @@ static int transport_find_fn(const char *url, git_transport_cb *callback, void *
/* 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))
definition = &local_transport_definition;
+#endif
- /* 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;
-#else
/* For other systems, perform the SSH check first, to avoid going to the
* filesystem if it is not necessary */
@@ -97,6 +93,7 @@ static int transport_find_fn(const char *url, git_transport_cb *callback, void *
definition = &dummy_transport_definition;
#endif
+#ifndef GIT_WIN32
/* 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))
definition = &local_transport_definition;