From 26c1c083def96ae02b864c426766d483bc412c31 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 27 Jul 2023 15:50:58 +0200 Subject: [PATCH] feat: with extra context Signed-off-by: kjuulh --- cuddle_cli/src/context.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cuddle_cli/src/context.rs b/cuddle_cli/src/context.rs index 550ba83..589a154 100644 --- a/cuddle_cli/src/context.rs +++ b/cuddle_cli/src/context.rs @@ -6,6 +6,7 @@ use std::{ sync::{Arc, Mutex}, }; +use anyhow::Context; use git2::{ build::{CheckoutBuilder, RepoBuilder}, FetchOptions, RemoteCallbacks, @@ -133,6 +134,8 @@ fn pull_parent_cuddle_into_local( } }); + rc.certificate_check(|_cert, _something| Ok(git2::CertificateCheckStatus::CertificateOk)); + let mut fo = FetchOptions::new(); fo.remote_callbacks(rc);