From a556464452789dc72cb9b0bff8e9ba6addc6639a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 8 Aug 2024 17:53:42 +0100 Subject: fix(send): patch count fix [PATCH n/n] when no cover letter and patches great than 1 fixes error where the first patch would be [PATCH] followed by [PATCH n/n] --- src/sub_commands/send.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs index f10d2d3..f492734 100644 --- a/src/sub_commands/send.rs +++ b/src/sub_commands/send.rs @@ -675,7 +675,7 @@ pub async fn generate_cover_letter_and_patch_events( signer, repo_ref, events.last().map(nostr::Event::id), - if events.is_empty() { + if events.is_empty() && commits.len().eq(&1) { None } else { Some(((i + 1).try_into()?, commits.len().try_into()?)) -- cgit v1.2.3