diff options
author | Nathan Daly <NHDaly@gmail.com> | 2013-05-30 09:12:27 +0400 |
---|---|---|
committer | Nathan Daly <NHDaly@gmail.com> | 2013-05-31 16:53:22 +0400 |
commit | 883929144d785702f783e956ff55434566cb009f (patch) | |
tree | c9d02c127ecf49c66f2190cdf03eee7061ae70e7 /src/clone.c | |
parent | 0c01f93e8c89a16b3531e4fb32384fe90bf4c548 (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.c | 4 |
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; |