Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
98c248d7
Commit
98c248d7
authored
Dec 05, 2013
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1988 from mgbowen/fix-libssh2-windows
Fixed compilation on Windows when using libssh2.
parents
cf297c35
ed5b77b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/transport.c
+2
-5
No files found.
src/transport.c
View file @
98c248d7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment