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
a7541676
Unverified
Commit
a7541676
authored
Jun 11, 2022
by
lhchavez
Committed by
GitHub
Jun 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply suggestions from code review
Co-authored-by: Edward Thomson <ethomson@github.com>
parent
1d88605c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
include/git2/sys/remote.h
+2
-0
include/git2/sys/transport.h
+1
-1
src/libgit2/transports/smart.c
+1
-1
tests/libgit2/transport/register.c
+1
-1
No files found.
include/git2/sys/remote.h
View file @
a7541676
...
...
@@ -30,6 +30,8 @@ typedef enum {
/**
* Disposes libgit2-initialized fields from a git_remote_connect_options.
* This should only be used for git_remote_connect_options returned by
* git_transport_remote_connect_options.
*
* Note that this does not free the `git_remote_connect_options` itself, just
* the memory pointed to by it.
...
...
include/git2/sys/transport.h
View file @
a7541676
...
...
@@ -280,7 +280,7 @@ GIT_EXTERN(int) git_transport_smart_proxy_options(git_proxy_options *out, git_tr
* @param out options struct to fill
* @param transport the transport to extract the data from.
*/
GIT_EXTERN
(
int
)
git_transport_
smart_
remote_connect_options
(
GIT_EXTERN
(
int
)
git_transport_remote_connect_options
(
git_remote_connect_options
*
out
,
git_transport
*
transport
);
...
...
src/libgit2/transports/smart.c
View file @
a7541676
...
...
@@ -425,7 +425,7 @@ int git_transport_smart_credentials(git_credential **out, git_transport *transpo
return
connect_opts
->
callbacks
.
credentials
(
out
,
t
->
url
,
user
,
methods
,
connect_opts
->
callbacks
.
payload
);
}
int
git_transport_
smart_
remote_connect_options
(
int
git_transport_remote_connect_options
(
git_remote_connect_options
*
out
,
git_transport
*
transport
)
{
...
...
tests/libgit2/transport/register.c
View file @
a7541676
...
...
@@ -134,7 +134,7 @@ static int custom_subtransport__action(
GIT_UNUSED
(
url
);
GIT_UNUSED
(
action
);
ret
=
git_transport_
smart_
remote_connect_options
(
&
opts
,
t
->
owner
);
ret
=
git_transport_remote_connect_options
(
&
opts
,
t
->
owner
);
/* increase the counter once if this function was called at all and once more if the URL matches. */
(
*
t
->
called
)
++
;
...
...
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