From 73d2c39abe3a1a7f67f0809380bf4c525cf1e1f2 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 11 Sep 2025 10:02:09 +0100 Subject: fix: ngit binary enforce git server timeout rather than just in the remote helper. --- src/bin/ngit/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs index f07203a..71b6e85 100644 --- a/src/bin/ngit/main.rs +++ b/src/bin/ngit/main.rs @@ -7,7 +7,11 @@ use clap::Parser; use cli::{AccountCommands, CUSTOMISE_TEMPLATE, Cli, Commands}; mod cli; -use ngit::{cli_interactor, client, git, git_events, login, repo_ref}; +use ngit::{ + cli_interactor, client, + git::{self, utils::set_git_timeout}, + git_events, login, repo_ref, +}; mod sub_commands; @@ -20,6 +24,8 @@ async fn main() -> Result<()> { std::process::exit(0); // Exit the program } + let _ = set_git_timeout(); + if let Some(command) = &cli.command { match command { Commands::Account(args) => match &args.account_command { -- cgit v1.2.3