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:
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]