Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Daly <NHDaly@gmail.com>2013-05-30 09:12:27 +0400
committerNathan Daly <NHDaly@gmail.com>2013-05-31 16:53:22 +0400
commit883929144d785702f783e956ff55434566cb009f (patch)
treec9d02c127ecf49c66f2190cdf03eee7061ae70e7 /src/clone.c
parent0c01f93e8c89a16b3531e4fb32384fe90bf4c548 (diff)
Added support for setting transport flags (No check SSL cert) to git_clone call.
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clone.c b/src/clone.c
index 7ebdb5765..ba19caef8 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -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;