feat: with extra context
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
3a9f00b1e5
commit
26c1c083de
@ -6,6 +6,7 @@ use std::{
|
|||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use anyhow::Context;
|
||||||
use git2::{
|
use git2::{
|
||||||
build::{CheckoutBuilder, RepoBuilder},
|
build::{CheckoutBuilder, RepoBuilder},
|
||||||
FetchOptions, RemoteCallbacks,
|
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();
|
let mut fo = FetchOptions::new();
|
||||||
fo.remote_callbacks(rc);
|
fo.remote_callbacks(rc);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user