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
69db8934
Commit
69db8934
authored
Aug 27, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2538 from libgit2/ntk/propagate_url_parsing_error
winhttp: Prevent swallowing of url parsing error
parents
893cfe06
f0c53d21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/transports/winhttp.c
+3
-3
tests/online/clone.c
+6
-0
No files found.
src/transports/winhttp.c
View file @
69db8934
...
...
@@ -1132,9 +1132,9 @@ static int winhttp_action(
int
ret
=
-
1
;
if
(
!
t
->
connection
)
if
(
gitno_connection_data_from_url
(
&
t
->
connection_data
,
url
,
NULL
)
<
0
||
winhttp_connect
(
t
,
url
)
<
0
)
return
-
1
;
if
(
(
ret
=
gitno_connection_data_from_url
(
&
t
->
connection_data
,
url
,
NULL
)
)
<
0
||
(
ret
=
winhttp_connect
(
t
,
url
)
)
<
0
)
return
ret
;
if
(
winhttp_stream_alloc
(
t
,
&
s
)
<
0
)
return
-
1
;
...
...
tests/online/clone.c
View file @
69db8934
...
...
@@ -463,3 +463,9 @@ void test_online_clone__ssh_cannot_change_username(void)
cl_git_fail
(
git_clone
(
&
g_repo
,
"ssh://git@github.com/libgit2/TestGitRepository"
,
"./foo"
,
&
g_options
));
}
void
test_online_clone__url_with_no_path_returns_EINVALIDSPEC
(
void
)
{
cl_git_fail_with
(
git_clone
(
&
g_repo
,
"http://github.com"
,
"./foo"
,
&
g_options
),
GIT_EINVALIDSPEC
);
}
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