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
512bd2c7
Commit
512bd2c7
authored
Apr 22, 2016
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3747 from libgit2/ethomson/warnings
⚡
some warnings
parents
1dc44910
0bd77401
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
src/iterator.c
+3
-4
src/stransport_stream.c
+4
-2
src/transports/smart.c
+1
-1
tests/online/clone.c
+3
-1
No files found.
src/iterator.c
View file @
512bd2c7
...
...
@@ -206,8 +206,7 @@ GIT_INLINE(bool) iterator_has_started(
return
false
;
}
GIT_INLINE
(
bool
)
iterator_has_ended
(
git_iterator
*
iter
,
const
char
*
path
,
bool
is_submodule
)
GIT_INLINE
(
bool
)
iterator_has_ended
(
git_iterator
*
iter
,
const
char
*
path
)
{
if
(
iter
->
end
==
NULL
)
return
false
;
...
...
@@ -797,7 +796,7 @@ static int tree_iterator_advance(const git_index_entry **out, git_iterator *i)
continue
;
/* if this path is after our end, stop */
if
(
iterator_has_ended
(
&
iter
->
base
,
iter
->
entry_path
.
ptr
,
false
))
{
if
(
iterator_has_ended
(
&
iter
->
base
,
iter
->
entry_path
.
ptr
))
{
error
=
GIT_ITEROVER
;
break
;
}
...
...
@@ -2034,7 +2033,7 @@ static int index_iterator_advance(
continue
;
}
if
(
iterator_has_ended
(
&
iter
->
base
,
entry
->
path
,
is_submodule
))
{
if
(
iterator_has_ended
(
&
iter
->
base
,
entry
->
path
))
{
error
=
GIT_ITEROVER
;
break
;
}
...
...
src/stransport_stream.c
View file @
512bd2c7
...
...
@@ -116,11 +116,13 @@ int stransport_certificate(git_cert **out, git_stream *stream)
return
0
;
}
int
stransport_set_proxy
(
git_stream
*
stream
,
const
char
*
proxy
)
int
stransport_set_proxy
(
git_stream
*
stream
,
const
git_proxy_options
*
proxy_opts
)
{
stransport_stream
*
st
=
(
stransport_stream
*
)
stream
;
return
git_stream_set_proxy
(
st
->
io
,
proxy
);
return
git_stream_set_proxy
(
st
->
io
,
proxy
_opts
);
}
/*
...
...
src/transports/smart.c
View file @
512bd2c7
...
...
@@ -444,7 +444,7 @@ static void git_smart__free(git_transport *transport)
git_pkt_free
(
p
);
git_vector_free
(
refs
);
git__free
(
t
->
proxy
.
url
);
git__free
(
(
char
*
)
t
->
proxy
.
url
);
git_strarray_free
(
&
t
->
custom_headers
);
...
...
tests/online/clone.c
View file @
512bd2c7
...
...
@@ -666,8 +666,10 @@ void test_online_clone__start_with_http(void)
static
int
called_proxy_creds
;
static
int
proxy_creds
(
git_cred
**
out
,
const
char
*
url
,
const
char
*
username
,
unsigned
int
allowed
,
void
*
payload
)
{
GIT_UNUSED
(
payload
);
GIT_UNUSED
(
url
);
GIT_UNUSED
(
username
);
GIT_UNUSED
(
allowed
);
GIT_UNUSED
(
payload
);
called_proxy_creds
=
1
;
return
git_cred_userpass_plaintext_new
(
out
,
_remote_proxy_user
,
_remote_proxy_pass
);
...
...
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