summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-05-31 06:01:59 -0700
committerVicent Martí <vicent@github.com>2013-05-31 06:01:59 -0700
commit8d863aa20595f2645840a5735805509f32d7c873 (patch)
treec271b6efe403f5ab6ff493f63d084a9e9adf8524 /src/clone.c
parent9afc59710ebfd63f0265aec79bc5388e610935a1 (diff)
parent883929144d785702f783e956ff55434566cb009f (diff)
downloadlibgit2-8d863aa20595f2645840a5735805509f32d7c873.tar.gz
Merge pull request #1621 from NHDaly/clone_transport_flags
Added support for setting transport flags (No check SSL cert) to git_clo...
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 4f763268b..191040da7 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;