diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-09 15:35:18 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-09 15:35:18 +0000 |
| commit | d8f4f7641312bff32f772cbc070b3f99ced0c8fe (patch) | |
| tree | 0ca4db7b41d7c191eb91ceb1c8124b5e659a3566 /src/bin/ngit/sub_commands/login.rs | |
| parent | f0d0e1ba1cba11d3a98a5ab0c7f1dc72b6bc4e17 (diff) | |
fix: fetch user relays for `send`,`push` & `init`
get the latest user relay list before pushing patches and repo
announcement events
Diffstat (limited to 'src/bin/ngit/sub_commands/login.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/login.rs | 13 |
1 files changed, 11 insertions, 2 deletions
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 | |||
| 64 | } else { | 64 | } else { |
| 65 | vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] | 65 | vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] |
| 66 | } { | 66 | } { |
| 67 | if let Ok((_, user_ref, source)) = | 67 | if let Ok((_, user_ref, source)) = load_existing_login( |
| 68 | load_existing_login(&git_repo, &None, &None, &Some(source), None, true, false).await | 68 | &git_repo, |
| 69 | &None, | ||
| 70 | &None, | ||
| 71 | &Some(source), | ||
| 72 | None, | ||
| 73 | true, | ||
| 74 | false, | ||
| 75 | false, | ||
| 76 | ) | ||
| 77 | .await | ||
| 69 | { | 78 | { |
| 70 | match Interactor::default().choice( | 79 | match Interactor::default().choice( |
| 71 | PromptChoiceParms::default() | 80 | PromptChoiceParms::default() |