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/logout.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/logout.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/logout.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bin/ngit/sub_commands/logout.rs b/src/bin/ngit/sub_commands/logout.rs index 682c017..f3f9620 100644 --- a/src/bin/ngit/sub_commands/logout.rs +++ b/src/bin/ngit/sub_commands/logout.rs | |||
| @@ -26,8 +26,17 @@ async fn logout(git_repo: Option<&Repo>) -> Result<()> { | |||
| 26 | } else { | 26 | } else { |
| 27 | vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] | 27 | vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] |
| 28 | } { | 28 | } { |
| 29 | if let Ok((_, user_ref, source)) = | 29 | if let Ok((_, user_ref, source)) = load_existing_login( |
| 30 | load_existing_login(&git_repo, &None, &None, &Some(source), None, true, false).await | 30 | &git_repo, |
| 31 | &None, | ||
| 32 | &None, | ||
| 33 | &Some(source), | ||
| 34 | None, | ||
| 35 | true, | ||
| 36 | false, | ||
| 37 | false, | ||
| 38 | ) | ||
| 39 | .await | ||
| 31 | { | 40 | { |
| 32 | for item in [ | 41 | for item in [ |
| 33 | "nostr.nsec", | 42 | "nostr.nsec", |