diff --git a/src/main.rs b/src/main.rs index 4bc618a..52a0769 100644 --- a/src/main.rs +++ b/src/main.rs @@ -496,7 +496,9 @@ impl FormatPatch { .ok_or(miette!("Interdiff patch path is not utf-8"))? .to_string(); - match path.ends_with(COVER_LETTER_NAME) || path.ends_with(STACKED_ON_NAME) { + match path.ends_with(&format!("{COVER_LETTER_NAME}.patch")) + || path.ends_with(STACKED_ON_NAME) + { true => Ok(None), false => Ok(Some(path)), }