with new base url WIP should come from environment instead
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-10-12 23:10:32 +02:00
parent aae8201252
commit 1727836c1f
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -110,9 +110,9 @@ fn pull_parent_cuddle_into_local(
destination: PathBuf,
) -> anyhow::Result<()> {
let mut rc = RemoteCallbacks::new();
rc.credentials(|_url, username_from_url, _allowed_types| {
rc.credentials(|_url, _username_from_url, _allowed_types| {
git2::Cred::ssh_key(
username_from_url.unwrap(),
"git",
None,
Path::new(&format!("{}/.ssh/id_ed25519", env::var("HOME").unwrap())),
None,