From 1727836c1f60c2c66217df06037a1e27290b46bf Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 12 Oct 2022 23:10:32 +0200 Subject: [PATCH] with new base url WIP should come from environment instead --- cuddle_cli/src/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuddle_cli/src/context.rs b/cuddle_cli/src/context.rs index 8472a3b..ca5ed4b 100644 --- a/cuddle_cli/src/context.rs +++ b/cuddle_cli/src/context.rs @@ -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,