upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/login.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit/sub_commands/login.rs')
-rw-r--r--src/bin/ngit/sub_commands/login.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/ngit/sub_commands/login.rs b/src/bin/ngit/sub_commands/login.rs
index 06236ec..e76a089 100644
--- a/src/bin/ngit/sub_commands/login.rs
+++ b/src/bin/ngit/sub_commands/login.rs
@@ -32,12 +32,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> {
32 }; 32 };
33 33
34 let git_repo_result = Repo::discover().context("failed to find a git repository"); 34 let git_repo_result = Repo::discover().context("failed to find a git repository");
35 let git_repo = { 35 let git_repo = { git_repo_result.ok() };
36 match git_repo_result {
37 Ok(git_repo) => Some(git_repo),
38 Err(_) => None,
39 }
40 };
41 36
42 let (logged_out, log_in_locally_only) = logout(git_repo.as_ref(), command_args.local).await?; 37 let (logged_out, log_in_locally_only) = logout(git_repo.as_ref(), command_args.local).await?;
43 if logged_out || log_in_locally_only { 38 if logged_out || log_in_locally_only {