upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-26 16:28:09 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-26 16:28:09 +0000
commitbdf71cb3d5a5ff8399c10c8d2492d3dd01c5fa33 (patch)
tree057008f20a0206f76b4a64f39fb12417c2e018a0 /src/bin/ngit/sub_commands
parent08397221abcd009fee1ab1b69d92b107b604bee1 (diff)
test(login): update `ngit login` test
to reflect the new interface and testing only nsec login
Diffstat (limited to 'src/bin/ngit/sub_commands')
-rw-r--r--src/bin/ngit/sub_commands/login.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs
index 29b4e81..ff58ec6 100644
--- a/src/bin/ngit/sub_commands/login.rs
+++ b/src/bin/ngit/sub_commands/login.rs
@@ -61,7 +61,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> {
61 61
62/// return ( bool - logged out, bool - log in to local git locally) 62/// return ( bool - logged out, bool - log in to local git locally)
63async fn logout(git_repo: Option<&Repo>, local_only: bool) -> Result<(bool, bool)> { 63async fn logout(git_repo: Option<&Repo>, local_only: bool) -> Result<(bool, bool)> {
64 for source in if local_only { 64 for source in if local_only || std::env::var("NGITTEST").is_ok() {
65 vec![SignerInfoSource::GitLocal] 65 vec![SignerInfoSource::GitLocal]
66 } else { 66 } else {
67 vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal] 67 vec![SignerInfoSource::GitLocal, SignerInfoSource::GitGlobal]