From 09c3ae91830bd9c7543b401b19f8c65a15205d32 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 5 Mar 2026 15:03:37 +0000 Subject: fix(whoami): detect and fall back to system git config for nostr login Add GitSystem to SignerInfoSource so credentials stored in the system git config (/etc/gitconfig) are included in the priority fallback chain (local > global > system) and shown as a separate level in whoami output. --- src/lib/login/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/login/mod.rs') diff --git a/src/lib/login/mod.rs b/src/lib/login/mod.rs index 47847c3..938cec4 100644 --- a/src/lib/login/mod.rs +++ b/src/lib/login/mod.rs @@ -65,6 +65,7 @@ pub enum SignerInfo { pub enum SignerInfoSource { GitLocal, GitGlobal, + GitSystem, CommandLineArguments, } @@ -91,6 +92,7 @@ fn print_logged_in_as( SignerInfoSource::CommandLineArguments => " via cli arguments", SignerInfoSource::GitLocal => " to local repository", SignerInfoSource::GitGlobal => "", + SignerInfoSource::GitSystem => " via system git config", } ); Ok(()) -- cgit v1.2.3