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,