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
88392914
Commit
88392914
authored
May 30, 2013
by
Nathan Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for setting transport flags (No check SSL cert) to git_clone call.
parent
0c01f93e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
include/git2/clone.h
+3
-0
src/clone.c
+4
-0
No files found.
include/git2/clone.h
View file @
88392914
...
...
@@ -51,6 +51,8 @@ GIT_BEGIN_DECL
* - `cred_acquire_cb` is a callback to be used if credentials are required
* during the initial fetch.
* - `cred_acquire_payload` is the payload for the above callback.
* - `transport_flags` is flags used to create transport if no transport is
* provided.
* - `transport` is a custom transport to be used for the initial fetch. NULL
* means use the transport autodetected from the URL.
* - `remote_callbacks` may be used to specify custom progress callbacks for
...
...
@@ -75,6 +77,7 @@ typedef struct git_clone_options {
const
char
*
push_spec
;
git_cred_acquire_cb
cred_acquire_cb
;
void
*
cred_acquire_payload
;
git_transport_flags_t
transport_flags
;
git_transport
*
transport
;
git_remote_callbacks
*
remote_callbacks
;
git_remote_autotag_option_t
remote_autotag
;
...
...
src/clone.c
View file @
88392914
...
...
@@ -336,6 +336,10 @@ static int create_and_configure_origin(
(
error
=
git_remote_set_pushurl
(
origin
,
options
->
pushurl
))
<
0
)
goto
on_error
;
if
(
options
->
transport_flags
==
GIT_TRANSPORTFLAGS_NO_CHECK_CERT
)
{
git_remote_check_cert
(
origin
,
0
);
}
if
((
error
=
git_remote_save
(
origin
))
<
0
)
goto
on_error
;
...
...
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