summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clone.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clone.c b/src/clone.c
index abea0bd8f..904be1b57 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -310,6 +310,9 @@ static int create_and_configure_origin(
if ((error = git_remote_create(&origin, repo, "origin", url)) < 0)
goto on_error;
+ if (options->ignore_cert_errors)
+ git_remote_check_cert(origin, 0);
+
if (options->remote_callbacks &&
(error = git_remote_set_callbacks(origin, options->remote_callbacks)) < 0)
goto on_error;