feat: with extra context

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-07-27 15:50:58 +02:00
parent 3a9f00b1e5
commit 26c1c083de
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -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);