From d8f4f7641312bff32f772cbc070b3f99ced0c8fe Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 9 Dec 2024 15:35:18 +0000 Subject: fix: fetch user relays for `send`,`push` & `init` get the latest user relay list before pushing patches and repo announcement events --- src/bin/ngit/sub_commands/login.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/bin/ngit/sub_commands/login.rs') diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs index 7670bc3..ccbdf01 100644 --- a/src/bin/ngit/sub_commands/login.rs +++ b/src/bin/ngit/sub_commands/login.rs @@ -64,8 +64,17 @@ async fn logout(git_repo: Option<&Repo>, local_only: bool) -> Result<(bool, bool } else { vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] } { - if let Ok((_, user_ref, source)) = - load_existing_login(&git_repo, &None, &None, &Some(source), None, true, false).await + if let Ok((_, user_ref, source)) = load_existing_login( + &git_repo, + &None, + &None, + &Some(source), + None, + true, + false, + false, + ) + .await { match Interactor::default().choice( PromptChoiceParms::default() -- cgit v1.2.3